[issue19414] OrderedDict.values() behavior for modified instance
Armin Rigo
report at bugs.python.org
Sun Oct 27 22:09:06 CET 2013
Armin Rigo added the comment:
Another option for the "try harder to raise RuntimeError" category (which I tend to like, because otherwise people are bound to write programs that rely on undocumented details):
In __delitem__() set link.next = None. In the various iterators check explicitly if curr.next is None, and raise RuntimeError if it is.
----------
nosy: +arigo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19414>
_______________________________________
More information about the Python-bugs-list
mailing list