This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients Ian, chris.jerdonek, docs@python
Date 2012-10-14.07:36:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350200206.95.0.394300478856.issue16225@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2012-10-14 07:36:47chris.jerdoneksetrecipients: + chris.jerdonek, docs@python, Ian
2012-10-14 07:36:46chris.jerdoneksetmessageid: <1350200206.95.0.394300478856.issue16225@psf.upfronthosting.co.za>
2012-10-14 07:36:46chris.jerdoneklinkissue16225 messages
2012-10-14 07:36:46chris.jerdonekcreate