We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2e3c1 commit aae218bCopy full SHA for aae218b
Doc/library/collections.rst
@@ -1258,12 +1258,6 @@ variants of :func:`functools.lru_cache`:
1258
if len(self.requests) > self.maxrequests:
1259
self.requests.popitem(last=False)
1260
else:
1261
- # no longer need to keep track of how many times this
1262
- # entry has been seen; in a single-threaded environment,
1263
- # the self.requests OrderedDict will always contain the value
1264
- # being removed, but use pop(args, None) to reduce
1265
- # complications in a multi-threaded environment where
1266
- # a race condition may cause an exception
1267
self.requests.pop(args, None)
1268
self.cache[args] = result
1269
if len(self.cache) > self.maxsize:
0 commit comments