[Python-checkins] r84149 - python/branches/py3k/Doc/library/functools.rst
raymond.hettinger
python-checkins at python.org
Tue Aug 17 21:19:30 CEST 2010
Author: raymond.hettinger
Date: Tue Aug 17 21:19:29 2010
New Revision: 84149
Log:
Minor rewording to docs for the lru_cache decorator
Modified:
python/branches/py3k/Doc/library/functools.rst
Modified: python/branches/py3k/Doc/library/functools.rst
==============================================================================
--- python/branches/py3k/Doc/library/functools.rst (original)
+++ python/branches/py3k/Doc/library/functools.rst Tue Aug 17 21:19:29 2010
@@ -55,9 +55,9 @@
The wrapped function also has a :attr:`clear` attribute which can be
called (with no arguments) to clear the cache.
- The :attr:`__wrapped__` attribute may be used to access the original
- function (e.g. to bypass the cache or to apply a different caching
- strategy)
+ The original underlying function is accessible through the
+ :attr:`__wrapped__` attribute. This allows introspection, bypassing
+ the cache, or rewrapping the function with a different caching tool.
A `LRU (least recently used) cache
<http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used>`_
More information about the Python-checkins
mailing list