Message224300
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. |
|
Date |
User |
Action |
Args |
2014-07-30 12:23:18 | r.david.murray | set | recipients:
+ r.david.murray, ezio.melotti, docs@python, charles.newey |
2014-07-30 12:23:18 | r.david.murray | set | messageid: <1406722998.85.0.683021583106.issue22106@psf.upfronthosting.co.za> |
2014-07-30 12:23:18 | r.david.murray | link | issue22106 messages |
2014-07-30 12:23:18 | r.david.murray | create | |
|