diff options
| author | Raymond Hettinger <python@rcn.com> | 2013-03-08 23:04:47 -0800 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2013-03-08 23:04:47 -0800 |
| commit | 36fe22806ce162300044a4d09e47ae166d2084ef (patch) | |
| tree | 24068428ade14d4ac67b5edbc305ba3afb61806f /Lib/functools.py | |
| parent | a28c55a2e484ea81b4f659f987893be3638cb982 (diff) | |
| parent | d8d6010df32d3f592e9d1e64a7b273498ddd6bd2 (diff) | |
| download | cpython-git-36fe22806ce162300044a4d09e47ae166d2084ef.tar.gz | |
merge
Diffstat (limited to 'Lib/functools.py')
| -rw-r--r-- | Lib/functools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index c436a52d3d..fa11d2f27c 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -266,7 +266,7 @@ def lru_cache(maxsize=128, typed=False): elif maxsize is None: def wrapper(*args, **kwds): - # simple caching without ordering or size limit + # Simple caching without ordering or size limit nonlocal hits, misses key = make_key(args, kwds, typed) result = cache_get(key, sentinel) @@ -281,7 +281,7 @@ def lru_cache(maxsize=128, typed=False): else: def wrapper(*args, **kwds): - # size limited caching that tracks accesses by recency + # Size limited caching that tracks accesses by recency nonlocal root, hits, misses, full key = make_key(args, kwds, typed) with lock: |
