[Python-checkins] cpython (merge 3.3 -> default): Merge

raymond.hettinger python-checkins at python.org
Mon Mar 4 10:20:58 CET 2013


http://hg.python.org/cpython/rev/244a721edf3a
changeset:   82471:244a721edf3a
parent:      82469:c761011eb02c
parent:      82470:052b90daf8b9
user:        Raymond Hettinger <python at rcn.com>
date:        Mon Mar 04 04:20:46 2013 -0500
summary:
  Merge

files:
  Lib/functools.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/functools.py b/Lib/functools.py
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -308,7 +308,7 @@
                         last = root[PREV]
                         link = [last, root, key, result]
                         last[NEXT] = root[PREV] = cache[key] = link
-                        full = (len(cache) == maxsize)
+                        full = (len(cache) >= maxsize)
                     misses += 1
                 return result
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list