[issue28969] lru_cache is not threadsafe

Serhiy Storchaka report at bugs.python.org
Thu Dec 15 07:07:36 EST 2016


Serhiy Storchaka added the comment:

Thank you for your example Peter.

Proposed patch fixes the KeyError. It introduces new private C API _PyDict_Pop_KnownHash(). It is like _PyDict_Pop(), but with precomputed hash.

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file45912/lru_cache-dict-pop.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28969>
_______________________________________


More information about the Python-bugs-list mailing list