diff options
author | Barry Warsaw <barry@python.org> | 2012-06-04 13:41:48 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2012-06-04 13:41:48 (GMT) |
commit | c58c392da7f8fb49b84b2f4de35d3c40ed6d36c1 (patch) | |
tree | a574ea8bd98e1d8d3be264c68b9952bda33b18c6 /Doc | |
parent | 409da157d7ff2a49892e20a94a3fc83475845d22 (diff) | |
parent | bcd304480f16f3f936a7bdbff4dfab41f8e30292 (diff) | |
download | cpython-c58c392da7f8fb49b84b2f4de35d3c40ed6d36c1.zip cpython-c58c392da7f8fb49b84b2f4de35d3c40ed6d36c1.tar.gz cpython-c58c392da7f8fb49b84b2f4de35d3c40ed6d36c1.tar.bz2 |
Trunk merge.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functools.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 1b0d82a..f5c6608 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -49,8 +49,9 @@ The :mod:`functools` module defines the following functions: Since a dictionary is used to cache results, the positional and keyword arguments to the function must be hashable. - If *maxsize* is set to None, the LRU feature is disabled and the cache - can grow without bound. + If *maxsize* is set to None, the LRU feature is disabled and the cache can + grow without bound. The LRU feature performs best when *maxsize* is a + power-of-two. If *typed* is set to True, function arguments of different types will be cached separately. For example, ``f(3)`` and ``f(3.0)`` will be treated |