summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/functools.rst2
-rw-r--r--Lib/functools.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 05f97b1..1b0d82a 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -40,7 +40,7 @@ The :mod:`functools` module defines the following functions:
.. versionadded:: 3.2
-.. decorator:: lru_cache(maxsize=100, typed=False)
+.. decorator:: lru_cache(maxsize=128, typed=False)
Decorator to wrap a function with a memoizing callable that saves up to the
*maxsize* most recent calls. It can save time when an expensive or I/O bound
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 @@ class _CacheKey(list):
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