summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-05-20 04:20:48 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-05-20 04:20:48 (GMT)
commit010ce3283a6989979817ffdb7beb603cb6dabe15 (patch)
treed21f700f81d0b1e410c2c47c5d5990479bc876f5 /Doc
parent3759877f87e0bc35fa6fefcb7c8e9a88ccbc936a (diff)
downloadcpython-010ce3283a6989979817ffdb7beb603cb6dabe15.zip
cpython-010ce3283a6989979817ffdb7beb603cb6dabe15.tar.gz
cpython-010ce3283a6989979817ffdb7beb603cb6dabe15.tar.bz2
Minor change to default lru size. Set default to a power of two.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functools.rst2
1 files changed, 1 insertions, 1 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