Commit bb5f4800 authored by Raymond Hettinger's avatar Raymond Hettinger

Merge

parents 32e2ff5d 352cc8cf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment