[issue41892] use both "for in" and "ElementTree.remove" has a index bug

miss-islington report at bugs.python.org
Sun Oct 4 19:23:51 EDT 2020


miss-islington <mariatta.wijaya+miss-islington at gmail.com> added the comment:


New changeset 6bd058e0ff5d4a63fb35f6d45161cdf51cb68c58 by Miss Skeleton (bot) in branch '3.8':
bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464)
https://github.com/python/cpython/commit/6bd058e0ff5d4a63fb35f6d45161cdf51cb68c58


----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41892>
_______________________________________


More information about the Python-bugs-list mailing list