commit | 4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Mar 16 17:08:37 2012 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Fri Mar 16 17:08:37 2012 -0700 |
tree | 72379f419d3234ed77efa0de805978eb3c3b47db | |
parent | 202d1ad3f6063758cddfbc596d2ad9f1efab5920 [diff] [blame] |
Root variable is not changed.
diff --git a/Lib/functools.py b/Lib/functools.py index 19b7613..fec4b9e 100644 --- a/Lib/functools.py +++ b/Lib/functools.py
@@ -223,7 +223,7 @@ def cache_clear(): """Clear the cache and cache statistics""" - nonlocal hits, misses, root + nonlocal hits, misses with lock: cache.clear() root[:] = [root, root, None, None]