]> granicus.if.org Git - python/commitdiff
Minor rewording to docs for the lru_cache decorator
authorRaymond Hettinger <python@rcn.com>
Tue, 17 Aug 2010 19:19:29 +0000 (19:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 17 Aug 2010 19:19:29 +0000 (19:19 +0000)
Doc/library/functools.rst

index 20bbe54956c98fe07d4e8b38a23cddc0f29be233..00ab624c72e393a8c8374c7fc0c613fa46939254 100644 (file)
@@ -55,9 +55,9 @@ The :mod:`functools` module defines the following functions:
    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>`_