commit | 010ce3283a6989979817ffdb7beb603cb6dabe15 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat May 19 21:20:48 2012 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Sat May 19 21:20:48 2012 -0700 |
tree | d21f700f81d0b1e410c2c47c5d5990479bc876f5 | |
parent | 3759877f87e0bc35fa6fefcb7c8e9a88ccbc936a [diff] [blame] |
Minor change to default lru size. Set default to a power of two.
diff --git a/Lib/functools.py b/Lib/functools.py index 8ef1732..9f024f1 100644 --- a/Lib/functools.py +++ b/Lib/functools.py
@@ -166,7 +166,7 @@ def __hash__(self): return self.hashvalue -def lru_cache(maxsize=100, typed=False): +def lru_cache(maxsize=128, typed=False): """Least-recently-used cache decorator. If *maxsize* is set to None, the LRU features are disabled and the cache