[issue25873] Faster ElementTree iterating

Serhiy Storchaka report at bugs.python.org
Tue Dec 15 21:02:52 EST 2015


Serhiy Storchaka added the comment:

Good catch Martin. I missed this case. Following patch fixes it.

Other bugs look similar. They presumably can be triggered when remove the element itself during executing the __next__() method. I have no a reproducer though.

I don't know wherever it is worth to fix these bugs in maintained releases.

----------
Added file: http://bugs.python.org/file41323/etree_iter2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25873>
_______________________________________


More information about the Python-bugs-list mailing list