summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-04 09:20:46 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-03-04 09:20:46 (GMT)
commitbb5f48008db4572b370bdf02674c33d3c2efad3a (patch)
tree9d8a2cd1feb223f6aaaccb54df232a0926f811fe /Lib/functools.py
parent32e2ff5dc5f0c78c943e958c52feb0424ae94a1b (diff)
parent352cc8cfc38e0233b0a0051761afcfd842367b95 (diff)
downloadcpython-bb5f48008db4572b370bdf02674c33d3c2efad3a.zip
cpython-bb5f48008db4572b370bdf02674c33d3c2efad3a.tar.gz
cpython-bb5f48008db4572b370bdf02674c33d3c2efad3a.tar.bz2
Merge
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 02bff42..9846a55 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -308,7 +308,7 @@ def lru_cache(maxsize=128, typed=False):
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