Add comment.

This commit is contained in:
Raymond Hettinger 2011-01-11 22:08:55 +00:00
parent ef4a03fffe
commit 524359f9f7

View file

@ -141,7 +141,7 @@ def lru_cache(maxsize=100):
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