[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

Raymond Hettinger report at bugs.python.org
Sun Aug 1 11:01:50 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> I think Serhiy's patch here (before revert) may be a 
> good idea (to re-apply).

That seems sensible to me as well.  It keeps the C version in harmony with the pure python version and it follows how regular dict's are implemented.

Serhiy, do you remember why your patch was reverted?

----------

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


More information about the Python-bugs-list mailing list