Message377731
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:24 | eric.smith | set | recipients:
+ eric.smith, docs@python, WoodyWoo |
2020-10-01 01:30:24 | eric.smith | set | messageid: <1601515824.46.0.258864567571.issue41899@roundup.psfhosted.org> |
2020-10-01 01:30:24 | eric.smith | link | issue41899 messages |
2020-10-01 01:30:24 | eric.smith | create | |
|