Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It is complicated. The pure Python implementation of OrderedDict.popitem() and 
OrderedDict.pop() are not consistent. The former uses dict.pop() which doesn't 
call __getitem__ and __setitem__. The latter calls __getitem__ and __setitem__. 
The C implementation shared code between popitem() and pop(), therefore it will 
differ from the pure Python implementation until we write separate code for 
popitem() and pop().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://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