This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients Stefan Pochmann, docs@python, rhettinger, terry.reedy, tim.peters, xgdomingo
Date 2018-02-11.03:02:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518318144.24.0.467229070634.issue32767@psf.upfronthosting.co.za>
In-reply-to
Content
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 ;-)
History
Date User Action Args
2018-02-11 03:02:24tim.peterssetrecipients: + tim.peters, rhettinger, terry.reedy, docs@python, Stefan Pochmann, xgdomingo
2018-02-11 03:02:24tim.peterssetmessageid: <1518318144.24.0.467229070634.issue32767@psf.upfronthosting.co.za>
2018-02-11 03:02:24tim.peterslinkissue32767 messages
2018-02-11 03:02:23tim.peterscreate