Message311977
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:
https://docs.python.org/release/1.5.1/ref/ref-9.html#HEADING9-27
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 ;-) |
|
Date |
User |
Action |
Args |
2018-02-11 03:02:24 | tim.peters | set | recipients:
+ tim.peters, rhettinger, terry.reedy, docs@python, Stefan Pochmann, xgdomingo |
2018-02-11 03:02:24 | tim.peters | set | messageid: <1518318144.24.0.467229070634.issue32767@psf.upfronthosting.co.za> |
2018-02-11 03:02:24 | tim.peters | link | issue32767 messages |
2018-02-11 03:02:23 | tim.peters | create | |
|