[issue16225] list.remove in for loop
Chris Jerdonek
report at bugs.python.org
Mon Oct 15 01:04:25 CEST 2012
Chris Jerdonek added the comment:
> It will be nice somewhere in deep clarify for experts what happens with list iterator if the list changed.
There is a note somewhat to this effect here:
http://docs.python.org/dev/reference/compound_stmts.html#the-for-statement
"Note There is a subtlety when the sequence is being modified by the loop...."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16225>
_______________________________________
More information about the Python-bugs-list
mailing list