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 eric.smith
Recipients WoodyWoo, docs@python, eric.smith
Date 2020-10-01.01:30:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As you've seen, the example is correct. I made the same mistake earlier today.

For others: see also #41891 for a suggestion to improve the documentation.

As was pointed out in that issue, it's generally true in Python that you should not mutate a sequence while iterating over it.
Date User Action Args
2020-10-01 01:30:24eric.smithsetrecipients: + eric.smith, docs@python, WoodyWoo
2020-10-01 01:30:24eric.smithsetmessageid: <>
2020-10-01 01:30:24eric.smithlinkissue41899 messages
2020-10-01 01:30:24eric.smithcreate