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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to