[issue3568] list enumeration corrupt when remove()
Benjamin Peterson
report at bugs.python.org
Sat Aug 16 21:31:20 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
It's a known fact that mutating a list during iteration will cause
problems. You should mutate a copy of the list.
----------
nosy: +benjamin.peterson
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3568>
_______________________________________
More information about the Python-bugs-list
mailing list