Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4138)

Unified Diff: Doc/library/functools.rst

Issue 14843: support define_macros / undef_macros in setup.cfg
Patch Set: Created 11 months, 1 week ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/functions.rst ('k') | Doc/library/gzip.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/functools.rst Sat Jun 09 17:31:59 2012 +0100
+++ b/Doc/library/functools.rst Mon May 21 23:01:17 2012 -0400
@@ -40,7 +40,7 @@
.. versionadded:: 3.2
-.. decorator:: lru_cache(maxsize=128, typed=False)
+.. decorator:: lru_cache(maxsize=100, 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
@@ -49,9 +49,8 @@
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. The LRU feature performs best when *maxsize* is a
- power-of-two.
+ If *maxsize* is set to None, the LRU feature is disabled and the cache
+ can grow without bound.
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
« no previous file with comments | « Doc/library/functions.rst ('k') | Doc/library/gzip.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7