From: Raymond Hettinger Date: Mon, 4 Mar 2013 09:19:09 +0000 (-0500) Subject: Another nit. X-Git-Tag: v3.3.1rc1~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=352cc8cfc38e0233b0a0051761afcfd842367b95;p=python Another nit. --- diff --git a/Lib/functools.py b/Lib/functools.py index 87c1b6992e..ba6f9cd5d4 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -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