Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb5f480

Browse files
committed
Merge
2 parents 32e2ff5 + 352cc8c commit bb5f480

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def wrapper(*args, **kwds):
308308
last = root[PREV]
309309
link = [last, root, key, result]
310310
last[NEXT] = root[PREV] = cache[key] = link
311-
full = (len(cache) == maxsize)
311+
full = (len(cache) >= maxsize)
312312
misses += 1
313313
return result
314314

0 commit comments

Comments
 (0)