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 <rep...@bugs.python.org> <http://bugs.python.org/issue25873> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com