]> granicus.if.org Git - python/commitdiff
Another nit.
authorRaymond Hettinger <python@rcn.com>
Mon, 4 Mar 2013 09:19:09 +0000 (04:19 -0500)
committerRaymond Hettinger <python@rcn.com>
Mon, 4 Mar 2013 09:19:09 +0000 (04:19 -0500)
Lib/functools.py

index 87c1b6992e2ffc363f9d1eed304ce63562f87eea..ba6f9cd5d4ab3da5b3056468d5049960f1341f91 100644 (file)
@@ -285,7 +285,7 @@ def lru_cache(maxsize=128, typed=False):
                         link = [last, root, key, result]
                         last[NEXT] = root[PREV] = cache[key] = link
                         currsize += 1
-                        full = (currsize == maxsize)
+                        full = (currsize >= maxsize)
                     misses += 1
                 return result