Serhiy Storchaka added the comment:

Ah, what is the reason for this code!

But Python implementation of popitem() don't call overridden 
__getitem__/__delitem__. It uses dict.pop(). Simplified C implementation is 
closer to Python implementation.

expiringdict is not the only implementation broken by accelerated OrderedDict. 
See other example in issue28014.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27275>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to