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 andrei.avk
Recipients andrei.avk, bluetech, docs@python, pablogsal, rhettinger, tim.peters
Date 2021-06-21.19:33:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624304015.04.0.747014934436.issue42588@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure it's worth it to complicate the logic by raising the error before iteration since iteration is normally done soon after method call.

I agree the doc change is helpful, since the ticket was dormant for a ~month, I've put up a PR with this change as well as clarifying that an iterator obj is returned rather than an iterable.

I've given credit to Ran in the PR description.
History
Date User Action Args
2021-06-21 19:33:35andrei.avksetrecipients: + andrei.avk, tim.peters, rhettinger, docs@python, pablogsal, bluetech
2021-06-21 19:33:35andrei.avksetmessageid: <1624304015.04.0.747014934436.issue42588@roundup.psfhosted.org>
2021-06-21 19:33:35andrei.avklinkissue42588 messages
2021-06-21 19:33:34andrei.avkcreate