diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2010-08-17 05:22:50 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2010-08-17 05:22:50 (GMT) |
commit | 632a0c1476bce66a2226ce9b103d0ef96e739a2c (patch) | |
tree | 552c19ea5843b7c1b563e53000ac97fc61e8c428 /Doc | |
parent | ad1e0c5e5fdd98aa3645d02aa9ab5d367f79a1db (diff) | |
download | cpython-632a0c1476bce66a2226ce9b103d0ef96e739a2c.zip cpython-632a0c1476bce66a2226ce9b103d0ef96e739a2c.tar.gz cpython-632a0c1476bce66a2226ce9b103d0ef96e739a2c.tar.bz2 |
Remove some lingering remnants of the short-lived functools.lfu_cache
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functools.rst | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 77e92f8..d7287bb 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -36,33 +36,6 @@ The :mod:`functools` module defines the following functions: .. versionadded:: 3.2 -.. decorator:: lfu_cache(maxsize) - - Decorator to wrap a function with a memoizing callable that saves up to the - *maxsize* most frequent calls. It can save time when an expensive or I/O - bound function is periodically called with the same arguments. - - The *maxsize* parameter defaults to 100. Since a dictionary is used to cache - results, the positional and keyword arguments to the function must be - hashable. - - The wrapped function is instrumented with two attributes, :attr:`hits` - and :attr:`misses` which count the number of successful or unsuccessful - cache lookups. These statistics are helpful for tuning the *maxsize* - parameter and for measuring the cache's effectiveness. - - The wrapped function also has a :attr:`clear` attribute which can be - called (with no arguments) to clear the cache. - - A `LFU (least frequently used) cache - <http://en.wikipedia.org/wiki/Cache_algorithms#Least-Frequently_Used>`_ - is indicated when the pattern of calls does not change over time, when - more the most common calls already seen are the best predictors of the - most common upcoming calls (for example, a phonelist of popular - help-lines may have access patterns that persist over time). - - .. versionadded:: 3.2 - .. decorator:: lru_cache(maxsize) Decorator to wrap a function with a memoizing callable that saves up to the |