summaryrefslogtreecommitdiff
path: root/Lib/functools.py
diff options
context:
space:
mode:
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