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, eli.bendersky, eric.smith, scoder, serhiy.storchaka
Date 2020-10-01.15:34:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601566454.06.0.427697921166.issue41892@roundup.psfhosted.org>
In-reply-to
Content
I can't say how ElementTree works without more checking, but this solution cannot work in general. Given a pointer to an object that's in a list, how would you get to the next item? Say the parent list-like object has a C array of pointers to the objects it contains, and removing one of the objects re-shuffles that list. How would keeping a pointer to the current object help you?

In any event, I don't think this behavior is going to change.
History
Date User Action Args
2020-10-01 15:34:14eric.smithsetrecipients: + eric.smith, scoder, eli.bendersky, docs@python, serhiy.storchaka, WoodyWoo
2020-10-01 15:34:14eric.smithsetmessageid: <1601566454.06.0.427697921166.issue41892@roundup.psfhosted.org>
2020-10-01 15:34:14eric.smithlinkissue41892 messages
2020-10-01 15:34:13eric.smithcreate