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 scoder
Recipients WoodyWoo, docs@python, eli.bendersky, eric.smith, scoder, serhiy.storchaka
Date 2020-09-30.15:31:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
@WoodyWoo, you can (and should) do something like this:

    for ELEMchild in list(etroot):

Modifying a container while iterating over it is usually not a good idea. The same applies to Python lists and dicts, for example.
Date User Action Args
2020-09-30 15:31:18scodersetrecipients: + scoder, eric.smith, eli.bendersky, docs@python, serhiy.storchaka, WoodyWoo
2020-09-30 15:31:18scodersetmessageid: <>
2020-09-30 15:31:18scoderlinkissue41892 messages
2020-09-30 15:31:18scodercreate