summaryrefslogtreecommitdiffstats
path: root/Lib/collections.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-02 19:56:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-02 19:56:28 (GMT)
commit7babc1b6a5a523bb6f8635a4ee6db2501595d27d (patch)
tree41d810533f39abc7462cccfe974e9ebbd44af409 /Lib/collections.py
parentd5c3f6c839403605d0e2c481d9b7d4e7b9aa4694 (diff)
downloadcpython-7babc1b6a5a523bb6f8635a4ee6db2501595d27d.zip
cpython-7babc1b6a5a523bb6f8635a4ee6db2501595d27d.tar.gz
cpython-7babc1b6a5a523bb6f8635a4ee6db2501595d27d.tar.bz2
Better method name. Tighten inner-loop with bound methods.
Diffstat (limited to 'Lib/collections.py')
-rw-r--r--Lib/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index fb6766e..c3c51d1 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -173,7 +173,7 @@ class OrderedDict(dict, MutableMapping):
def __del__(self):
self.clear() # eliminate cyclical references
- def _move_to_end(self, key, PREV=0, NEXT=1):
+ def _renew(self, key, PREV=0, NEXT=1):
'Fast version of self[key]=self.pop(key). Private method for internal use.'
link = self.__map[key]
link_prev = link[PREV]