Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
ded4c4967b37ead4c2f897b3a0f565a02098a948
/
Lib
/
functools.py
ce2295d
Removed redundant call of update_wrapper().
by Serhiy Storchaka
· 9 years ago
77a8cd6
Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
by Yury Selivanov
· 9 years ago
46c5611
Backed out changeset: b0a0b9b59012
by Serhiy Storchaka
· 9 years ago
8252cc9
Backed out changeset 57776eee74f2
by Larry Hastings
· 9 years ago
1c858c3
Issue #14373: Added C implementation of functools.lru_cache(). Based on
by Serhiy Storchaka
· 9 years ago
ba9ac5b
Issue #16261: Converted some bare except statements to except statements
by Serhiy Storchaka
· 9 years ago
ffcd849
Reduce the overhead in functools.total_ordering by localizing NotImplemented.
by Raymond Hettinger
· 9 years ago
e49af34
Issue #7830: Flatten nested functools.partial.
by Alexander Belopolsky
· 9 years ago
08448a1
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
by Serhiy Storchaka
· 10 years ago
1a8ada8
No need to rebuild a constant dictionary on every call. Move convert mapping to module level.
by Raymond Hettinger
· 10 years ago
e5db863
Minor speed-up. Use local variable instead of a global lookup.
by Raymond Hettinger
· 10 years ago
57a3786
merge
by Raymond Hettinger
· 10 years ago
0603d30
Issue #23132: Mitigate regression in speed and clarity in functools.total_ordering.
by Raymond Hettinger
· 10 years ago
697a526
Issue #23132: Improve performance and introspection support of comparison
by Serhiy Storchaka
· 10 years ago
92c7b90
merge
by Raymond Hettinger
· 10 years ago
4d58897
Issue 22184: Early detection and reporting of missing lru_cache parameters
by Raymond Hettinger
· 10 years ago
521e586
Issue #22032: __qualname__ instead of __name__ is now always used to format
by Serhiy Storchaka
· 10 years ago
7fa767e
Issue #20976: pyflakes: Remove unused imports
by Victor Stinner
· 10 years ago
da5fe4f
inspect.signature: Add support for 'functools.partialmethod' #20223
by Yury Selivanov
· 11 years ago
3daaf5f
Fix functools.partialmethod docs and __all__
by Nick Coghlan
· 11 years ago
f4cb48a
Issue #4331: Added functools.partialmethod
by Nick Coghlan
· 11 years ago
f05d981
Close #10042: functools.total_ordering now handles NotImplemented
by Nick Coghlan
· 11 years ago
24c05bc
Close issue 17482: don't overwrite __wrapped__
by Nick Coghlan
· 11 years ago
cd171c8
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
by Brett Cannon
· 11 years ago
3720c77
Issue #18244: Adopt C3-based linearization in functools.singledispatch for improved ABC support
by Łukasz Langa
· 11 years ago
0a14066
Issue #18200: Update the stdlib (except tests) to use ModuleNotFoundError.
by Brett Cannon
· 11 years ago
6f69251
Add reference implementation for PEP 443
by Łukasz Langa
· 11 years ago
36fe228
merge
by Raymond Hettinger
· 11 years ago
d8d6010
Sync-up with 3.4 to make maintenance easier.
by Raymond Hettinger
· 11 years ago
a28c55a
merge
by Raymond Hettinger
· 11 years ago
f96b2b0
Improve comments and variable names.
by Raymond Hettinger
· 11 years ago
bb5f480
Merge
by Raymond Hettinger
· 11 years ago
352cc8c
Another nit.
by Raymond Hettinger
· 11 years ago
32e2ff5
merge
by Raymond Hettinger
· 11 years ago
f2c17a9
Fix other re-entrancy nits for the lru_cache.
by Raymond Hettinger
· 11 years ago
794568f
Merge
by Raymond Hettinger
· 11 years ago
409f663
Remove dependency on dummy_threading (to solve a bootstrap problem).
by Raymond Hettinger
· 11 years ago
dacb685
Merge
by Raymond Hettinger
· 11 years ago
fd54117
Don't deadlock on a reentrant call.
by Raymond Hettinger
· 11 years ago
832edde
Eliminate unnecessary variable.
by Raymond Hettinger
· 12 years ago
b5b3714
Issue #12428: Add a pure Python implementation of functools.partial().
by Antoine Pitrou
· 12 years ago
0c9050c
Separate key creation logic from the sequence class that memoizes its hash value.
by Raymond Hettinger
· 12 years ago
010ce32
Minor change to default lru size. Set default to a power of two.
by Raymond Hettinger
· 12 years ago
9acbb60
Move make_key() out of the decorator body. Make keys that only need to be hashed once.
by Raymond Hettinger
· 12 years ago
018b4fb
Use a flag to indicate when the circular queue is fully populated and stable.
by Raymond Hettinger
· 12 years ago
34d94a2
Handle a possible race condition
by Raymond Hettinger
· 12 years ago
b6b98c0
Track the cache size directly.
by Raymond Hettinger
· 12 years ago
9f0ab9f
Factor out shared variables.
by Raymond Hettinger
· 12 years ago
678e7f3
Flatten the lru cache keyword args tuple for better memory utilization.
by Raymond Hettinger
· 12 years ago
c689785
Fix-up a comment
by Raymond Hettinger
· 12 years ago
7f7a5a7
Fix-up comments and add a sentinel variable for clarity.
by Raymond Hettinger
· 12 years ago
41eb79a
No need to create and destroy links when updating a fixed-sized circular queue.
by Raymond Hettinger
· 12 years ago
1ff50df
Minor cleanup: add whitespace, add comments, bring function attribute updates together.
by Raymond Hettinger
· 12 years ago
7dabfed
Fix whitespace
by Raymond Hettinger
· 12 years ago
7e0c581
Low overhead path for maxsize==0
by Raymond Hettinger
· 12 years ago
bc8e81d
Section-off the source for better readability.
by Raymond Hettinger
· 12 years ago
dce583e
Minor beautification.
by Raymond Hettinger
· 12 years ago
4f5139b
Root variable is not changed.
by Raymond Hettinger
· 12 years ago
202d1ad
Fix whitespace
by Raymond Hettinger
· 12 years ago
d37fb55
Unique sentinel value for cache.get()
by Raymond Hettinger
· 12 years ago
6e8c817
Refactor calculation of the cache key. Minor code cleanups.
by Raymond Hettinger
· 12 years ago
29a837d
merge heads
by Benjamin Peterson
· 12 years ago
954cf57
clear the root with the cache
by Benjamin Peterson
· 12 years ago
d656958
Minor code cleanup.
by Raymond Hettinger
· 12 years ago
57b2959
Eliminate duplicate link lookup. Minor cleanup.
by Raymond Hettinger
· 12 years ago
ec0e910
Improve the memory utilization (and speed) of functools.lru_cache().
by Raymond Hettinger
· 12 years ago
ff7f64c
Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
by Meador Inge
· 13 years ago
cd9fdfd
Issue 13227: Option to make the lru_cache() type specific (suggested by Andrew Koenig).
by Raymond Hettinger
· 13 years ago
d8886fc
Merge
by Raymond Hettinger
· 13 years ago
4b779b3
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
by Raymond Hettinger
· 13 years ago
8cd2e5f
Sync-up minor code edits with the default branch.
by Raymond Hettinger
· 13 years ago
e7a2430
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
by Raymond Hettinger
· 13 years ago
003be52
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
by Raymond Hettinger
· 13 years ago
7ab9e22
Issue #11707: Fast C version of functools.cmp_to_key()
by Raymond Hettinger
· 13 years ago
0a4edd5
Issue #11628: cmp_to_key should use __slots__.
by Raymond Hettinger
· 13 years ago
a0d1d96
Issue #11628: cmp_to_key should use __slots__.
by Raymond Hettinger
· 13 years ago
7e4c168
Minor optimization -- factor a constant expression out of the inner-loop.
by Raymond Hettinger
· 13 years ago
524359f
Add comment.
by Raymond Hettinger
· 14 years ago
23f9fc3
Issue #10042: Fixed the total_ordering decorator to handle cross-type
by Raymond Hettinger
· 14 years ago
c79fb0e
Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.
by Raymond Hettinger
· 14 years ago
00f2f97
Doc and docstring nits.
by Raymond Hettinger
· 14 years ago
7496b41
Add example, tighten text, and minor clean-ups.
by Raymond Hettinger
· 14 years ago
5e20bab
Neaten-up a bit.
by Raymond Hettinger
· 14 years ago
234515a
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
by Nick Coghlan
· 14 years ago
5fa40c0
Clean-up docstring, comments, and whitespace.
by Raymond Hettinger
· 14 years ago
3255c63
Improve comment
by Raymond Hettinger
· 14 years ago
1006bd4
Future proof total_ordering against changes in methods defined on object.
by Raymond Hettinger
· 14 years ago
bd88802
Revert r84700 which had an unfortunate performance cost.
by Raymond Hettinger
· 14 years ago
22b46e0
Separate positional arguments from localized globals.
by Raymond Hettinger
· 14 years ago
1017ae5
add reduce and partial to __all__
by Benjamin Peterson
· 14 years ago
f45abc9
Add method to OrderedDict for repositioning keys to the ends.
by Raymond Hettinger
· 14 years ago
4c7c9af
Clean-up functools.total_ordering().
by Raymond Hettinger
· 14 years ago
02566ec
Adopt more descriptive attribute names as suggested on python-dev.
by Raymond Hettinger
· 14 years ago
af1e140
Readability nit.
by Raymond Hettinger
· 14 years ago
7babc1b
Better method name. Tighten inner-loop with bound methods.
by Raymond Hettinger
· 14 years ago
38d17e3
Speed-up cache updates
by Raymond Hettinger
· 14 years ago
16925e8
remove parens
by Benjamin Peterson
· 14 years ago
9c2930e
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
by Benjamin Peterson
· 14 years ago
9887683
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
by Nick Coghlan
· 14 years ago
0b5669c
Fix __all__.
by Raymond Hettinger
· 14 years ago
Next »