mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add comment.
This commit is contained in:
parent
ef4a03fffe
commit
524359f9f7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue