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 r.david.murray
Recipients charles.newey, docs@python, ezio.melotti, r.david.murray
Date 2014-07-30.12:23:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406722998.85.0.683021583106.issue22106@psf.upfronthosting.co.za>
In-reply-to
Content
How about something like:

   for x in my_generator():
       pass   # Exhaust co-routine generator to make sure all data is processed.

I have no idea if you'd ever actually do that in a well-structured co-routine context, though, not having written very much of that kind of code.
History
Date User Action Args
2014-07-30 12:23:18r.david.murraysetrecipients: + r.david.murray, ezio.melotti, docs@python, charles.newey
2014-07-30 12:23:18r.david.murraysetmessageid: <1406722998.85.0.683021583106.issue22106@psf.upfronthosting.co.za>
2014-07-30 12:23:18r.david.murraylinkissue22106 messages
2014-07-30 12:23:18r.david.murraycreate