[issue6017] Dict fails to notice addition and deletion of keys during iteration
Benjamin Peterson
report at bugs.python.org
Thu May 14 13:50:04 CEST 2009
Benjamin Peterson <benjamin at python.org> added the comment:
This is correct; dict iterators check to see if the size of the dict is
different. However, fixing this problem would require tracking dict
contents during iteration. That strikes me as too inefficient and too
much code for this little case.
----------
nosy: +benjamin.peterson
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6017>
_______________________________________
More information about the Python-bugs-list
mailing list