[issue35780] Recheck logic in the C version of the lru_cache()

Serhiy Storchaka report at bugs.python.org
Sat Jan 19 06:34:32 EST 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Operations with the linked list are atomic (guarded with the GIL), while operations with the cache dict are not. That is why links are removed first from the linked list and added back in case of error.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35780>
_______________________________________


More information about the Python-bugs-list mailing list