[docs] [issue32767] Mutating a list while iterating: clarify the docs
report at bugs.python.org
Sat Feb 10 22:02:24 EST 2018
Tim Peters <tim at python.org> added the comment:
Stefan, yup! Thank you. `array.array` and `bytearray` iterators appear to work the same way as `list` iterators here.
Terry, the note in the `for` statement docs was written before there _was_ an iterator protocol. For example, here are the 1.5.1 docs:
Back then, the expression_list had to evaluate to a "string, tuple or list". Or so the docs said - I don't remember the implementation details.
Regardless, I think we all agree the note is at best out of date ;-)
Python tracker <report at bugs.python.org>
More information about the docs