[docs] [issue22106] Python 2 docs 'control flow/pass' section contains bad example
R. David Murray
report at bugs.python.org
Wed Jul 30 14:23:18 CEST 2014
R. David Murray added the comment:
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.
Python tracker <report at bugs.python.org>
More information about the docs