summaryrefslogtreecommitdiff
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-04 04:20:46 -0500
committerRaymond Hettinger <python@rcn.com>2013-03-04 04:20:46 -0500
commitd80db7e4543b19387b22cf42914e7657f490c99a (patch)
treed1a8525d02919e25fb12f90b0c79b706a738deb8 /Lib/functools.py
parent222da840d2adfe77232766e99af2bc9e508329f4 (diff)
parent201413a8e98af791cd72c3ae806bc1ba16b3551c (diff)
downloadcpython-d80db7e4543b19387b22cf42914e7657f490c99a.tar.gz
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 02bff42bd3..9846a55760 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