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 bluetech
Recipients bluetech, docs@python
Date 2020-12-07.15:21:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607354460.74.0.517862935123.issue42588@roundup.psfhosted.org>
In-reply-to
Content
Hmm I realize after the fact that since the equivalent code snippet (which is actually the implementation) is a generator, then it is actually correct that prepare() isn't called until it is iterated. So the documentation for this is not incorrect.

Still, I think it would be better if the prepare() executes immediately rather than in the first iteration.
History
Date User Action Args
2020-12-07 15:21:00bluetechsetrecipients: + bluetech, docs@python
2020-12-07 15:21:00bluetechsetmessageid: <1607354460.74.0.517862935123.issue42588@roundup.psfhosted.org>
2020-12-07 15:21:00bluetechlinkissue42588 messages
2020-12-07 15:21:00bluetechcreate