[Python-checkins] r87943 - python/branches/py3k/Lib/functools.py
raymond.hettinger
python-checkins at python.org
Tue Jan 11 23:08:57 CET 2011
Author: raymond.hettinger
Date: Tue Jan 11 23:08:55 2011
New Revision: 87943
Log:
Add comment.
Modified:
python/branches/py3k/Lib/functools.py
Modified: python/branches/py3k/Lib/functools.py
==============================================================================
--- python/branches/py3k/Lib/functools.py (original)
+++ python/branches/py3k/Lib/functools.py Tue Jan 11 23:08:55 2011
@@ -141,7 +141,7 @@
hits = misses = 0
kwd_mark = object() # separates positional and keyword args
- lock = Lock()
+ lock = Lock() # needed because ordereddicts aren't threadsafe
if maxsize is None:
cache = dict() # simple cache without ordering or size limit
More information about the Python-checkins
mailing list