diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-06 21:26:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-06 21:26:09 (GMT) |
commit | f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478 (patch) | |
tree | 7b24d9113c1d79480cde1daae9ed58199bc0e007 /Lib/functools.py | |
parent | 7b2a7710ef17e38e021f6f045b8cd7ad0e96d5e1 (diff) | |
download | cpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.zip cpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.tar.gz cpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.tar.bz2 |
Add method to OrderedDict for repositioning keys to the ends.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index b2df390..a723f66 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -127,7 +127,7 @@ def lru_cache(maxsize=100): len=len, KeyError=KeyError): cache = OrderedDict() # ordered least recent to most recent cache_popitem = cache.popitem - cache_renew = cache._renew + cache_renew = cache.move_to_end kwd_mark = object() # separate positional and keyword args lock = Lock() |