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

WoodyWoo report at bugs.python.org
Wed Sep 30 19:27:22 EDT 2020


WoodyWoo <saulmatchless at 163.com> added the comment:

I think "for each in list" should not work by index,but should work by pointer like thing,could be a list of pointers.
When the "for each in list" was acting,the pointers list would be fixed,and you need not to worry about the "list" changing.

----------

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


More information about the Python-bugs-list mailing list