Kaydet (Commit) 352cc8cf authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Another nit.

üst f2c17a92
......@@ -285,7 +285,7 @@ def lru_cache(maxsize=128, typed=False):
link = [last, root, key, result]
last[NEXT] = root[PREV] = cache[key] = link
currsize += 1
full = (currsize == maxsize)
full = (currsize >= 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