[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()
William Pitcock
report at bugs.python.org
Thu Jun 9 04:13:13 EDT 2016
William Pitcock added the comment:
A frequent reproducer is to run the expiringdict tests on Python 3.5.1, unfortunately I cannot come up with a testcase.
Replacing use of popitem() with "del self[next(OrderedDict.__iter__(self))]" removes the KeyErrors and the structure otherwise works fine.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27275>
_______________________________________
More information about the Python-bugs-list
mailing list