| --- 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 |