[docs] [issue16225] list.remove in for loop

Serhiy Storchaka report at bugs.python.org
Mon Oct 15 00:22:13 CEST 2012


Serhiy Storchaka added the comment:

I mean it does not lead to crash, hang, etc. Even growing list during iteration can be safe you move forward faster than list grows or if you known where to stop.

Unexpected behavior for one people can be expected for others.

----------

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


More information about the docs mailing list