Chris Jerdonek added the comment: > I have worked with languages where you are explicitly warned that you must > not mess with the loop variable
There is a warning in this part of the tutorial: "It is not safe to modify the sequence being iterated over in the loop..." (from http://docs.python.org/dev/tutorial/controlflow.html#for-statements ) But it may be good to add a note to the section you reference as well. ---------- assignee: -> docs@python components: +Documentation nosy: +chris.jerdonek, docs@python _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16225> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com