commit | 7babc1b6a5a523bb6f8635a4ee6db2501595d27d | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Sep 02 19:56:28 2010 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Sep 02 19:56:28 2010 +0000 |
tree | 41d810533f39abc7462cccfe974e9ebbd44af409 | |
parent | d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694 [diff] [blame] |
Better method name. Tighten inner-loop with bound methods.
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 @@ 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]