[issue16991] Add OrderedDict written in C
Stefan Krah
report at bugs.python.org
Mon Jun 1 12:19:03 CEST 2015
Stefan Krah added the comment:
crash-2.py is due to the fact that _PyDict_Pop() deletes a reference
to 'key' in _odict_popkey().
The INCREF(key) in popitem should take place before calling _odict_popkey().
Again, I don't see the point of INCREF/DECREF *inside* of _odict_popkey().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16991>
_______________________________________
More information about the Python-bugs-list
mailing list