summaryrefslogtreecommitdiff
path: root/Lib/functools.py
AgeCommit message (Expand)AuthorLines
2013-03-08Sync-up with 3.4 to make maintenance easier.Raymond Hettinger-9/+7
2013-03-08Improve comments and variable names.Raymond Hettinger-14/+37
2013-03-04Another nit.Raymond Hettinger-1/+1
2013-03-04Fix other re-entrancy nits for the lru_cache.Raymond Hettinger-7/+11
2013-03-01Remove dependency on dummy_threading (to solve a bootstrap problem).Raymond Hettinger-1/+4
2013-03-01Don't deadlock on a reentrant call.Raymond Hettinger-3/+3
2012-06-04Separate key creation logic from the sequence class that memoizes its hash va...Raymond Hettinger-19/+24
2012-05-19Minor change to default lru size. Set default to a power of two.Raymond Hettinger-1/+1
2012-04-30Move make_key() out of the decorator body. Make keys that only need to be has...Raymond Hettinger-17/+27
2012-04-30Use a flag to indicate when the circular queue is fully populated and stable.Raymond Hettinger-9/+12
2012-04-30Handle a possible race conditionRaymond Hettinger-0/+6
2012-04-29Track the cache size directly.Raymond Hettinger-10/+11
2012-04-29Factor out shared variables.Raymond Hettinger-4/+6
2012-04-29Flatten the lru cache keyword args tuple for better memory utilization.Raymond Hettinger-1/+3
2012-03-31Fix-up a commentRaymond Hettinger-3/+2
2012-03-30Fix-up comments and add a sentinel variable for clarity.Raymond Hettinger-16/+17
2012-03-30No need to create and destroy links when updating a fixed-sized circular queue.Raymond Hettinger-11/+16
2012-03-30Minor cleanup: add whitespace, add comments, bring function attribute updates...Raymond Hettinger-5/+4
2012-03-17Fix whitespaceRaymond Hettinger-1/+1
2012-03-17Low overhead path for maxsize==0Raymond Hettinger-2/+13
2012-03-17Section-off the source for better readability.Raymond Hettinger-0/+23
2012-03-16Minor beautification.Raymond Hettinger-1/+1
2012-03-16Root variable is not changed.Raymond Hettinger-1/+1
2012-03-16Fix whitespaceRaymond Hettinger-1/+1
2012-03-16Unique sentinel value for cache.get()Raymond Hettinger-2/+2
2012-03-16Refactor calculation of the cache key. Minor code cleanups.Raymond Hettinger-25/+21
2012-03-16merge headsBenjamin Peterson-2/+1
2012-03-16clear the root with the cacheBenjamin Peterson-1/+3
2012-03-16Minor code cleanup.Raymond Hettinger-2/+1
2012-03-16Eliminate duplicate link lookup. Minor cleanup.Raymond Hettinger-2/+2
2012-03-16Improve the memory utilization (and speed) of functools.lru_cache().Raymond Hettinger-21/+32
2011-12-11Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.Meador Inge-1/+2
2011-10-20Issue 13227: Option to make the lru_cache() type specific (suggested by Andre...Raymond Hettinger-4/+18
2011-10-16MergeRaymond Hettinger-15/+19
2011-10-15Issue 13177: Make tracebacks more readable by avoiding chained exceptions in ...Raymond Hettinger-15/+19
2011-05-05Sync-up minor code edits with the default branch.Raymond Hettinger-4/+4
2011-05-03Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.Raymond Hettinger-2/+1
2011-05-03Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.Raymond Hettinger-2/+1
2011-04-05Issue #11707: Fast C version of functools.cmp_to_key()Raymond Hettinger-1/+6
2011-03-21Issue #11628: cmp_to_key should use __slots__.Raymond Hettinger-0/+1
2011-03-21Issue #11628: cmp_to_key should use __slots__.Raymond Hettinger-0/+1
2011-03-18Minor optimization -- factor a constant expression out of the inner-loop.Raymond Hettinger-3/+3
2011-01-11Add comment.Raymond Hettinger-1/+1
2011-01-08Issue #10042: Fixed the total_ordering decorator to handle cross-typeRaymond Hettinger-8/+8
2010-12-01Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.Raymond Hettinger-19/+41
2010-12-01Doc and docstring nits.Raymond Hettinger-2/+2
2010-11-30Add example, tighten text, and minor clean-ups.Raymond Hettinger-2/+2
2010-11-30Neaten-up a bit.Raymond Hettinger-7/+6
2010-11-30Issue 10586: change the new functools.lru_cache implementation to expose the ...Nick Coghlan-7/+18
2010-11-25Clean-up docstring, comments, and whitespace.Raymond Hettinger-5/+15