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, eric.smith
Date 2020-09-30.14:31:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601476304.82.0.290568459494.issue41892@roundup.psfhosted.org>
In-reply-to
Content
I assume that ElementTree doesn't support mutation while iterating.

However, the docs at https://docs.python.org/3/library/xml.etree.elementtree.html#modifying-an-xml-file show removing an item while iterating. It probably only works because the child being removed is the last one.
History
Date User Action Args
2020-09-30 14:31:44eric.smithsetrecipients: + eric.smith, WoodyWoo
2020-09-30 14:31:44eric.smithsetmessageid: <1601476304.82.0.290568459494.issue41892@roundup.psfhosted.org>
2020-09-30 14:31:44eric.smithlinkissue41892 messages
2020-09-30 14:31:44eric.smithcreate