[issue19414] OrderedDict.values() behavior for modified instance

Nikolaus Rath report at bugs.python.org
Sun Oct 27 22:39:08 CET 2013


Nikolaus Rath added the comment:

Being able to modify an OrderedDict while iterating through it is pretty useful though.

What about documenting that modifying an OrderedDict is allowed, but may cause iteration to skip or repeat items (but do not allow it to raise RuntimeError)?

As far as I can tell, the current implementation will already guarantee that (as soon as this issue is fixed).

----------

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


More information about the Python-bugs-list mailing list