mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Doc and docstring nits.
This commit is contained in:
parent
c0abc4e3a4
commit
00f2f97dbd
2 changed files with 6 additions and 2 deletions
|
@ -121,9 +121,9 @@ def lru_cache(maxsize=100):
|
|||
|
||||
Arguments to the cached function must be hashable.
|
||||
|
||||
View the cache statistics named tuple (maxsize, size, hits, misses) with
|
||||
View the cache statistics named tuple (hits, misses, maxsize, currsize) with
|
||||
f.cache_info(). Clear the cache and statistics with f.cache_clear().
|
||||
And access the underlying function with f.__wrapped__.
|
||||
Access the underlying function with f.__wrapped__.
|
||||
|
||||
See: http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue