diff options
author | Raymond Hettinger <python@rcn.com> | 2013-03-04 04:20:46 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-03-04 04:20:46 -0500 |
commit | d80db7e4543b19387b22cf42914e7657f490c99a (patch) | |
tree | d1a8525d02919e25fb12f90b0c79b706a738deb8 /Lib/functools.py | |
parent | 222da840d2adfe77232766e99af2bc9e508329f4 (diff) | |
parent | 201413a8e98af791cd72c3ae806bc1ba16b3551c (diff) | |
download | cpython-d80db7e4543b19387b22cf42914e7657f490c99a.tar.gz |
Merge
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 2 |
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 |