commit | f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Sep 06 21:26:09 2010 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Sep 06 21:26:09 2010 +0000 |
tree | 7b24d9113c1d79480cde1daae9ed58199bc0e007 | |
parent | 7b2a7710ef17e38e021f6f045b8cd7ad0e96d5e1 [diff] [blame] |
Add method to OrderedDict for repositioning keys to the ends.
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 @@ 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()