[issue24667] OrderedDict.popitem()/__str__() raises KeyError

Eric Snow report at bugs.python.org
Sat Aug 1 00:28:24 CEST 2015


Eric Snow added the comment:

I've verified that it is definitely the linked list that is getting updated incorrectly at the point that a key is popped off.  The underlying dict is working fine.  The erroneous behavior is happening with either pop, popitem, or __delitem__.  However, it is likely in the common code used to remove a node from the linked list (e.g. _odict_clear_node).

----------

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


More information about the Python-bugs-list mailing list