[docs] [issue24088] yield expression confusion
R. David Murray
report at bugs.python.org
Sat May 2 04:15:04 CEST 2015
R. David Murray added the comment:
Yes, and it is not using generator function in two different ways: it is literally the case that calling the generator function returns a generator object, which in turn controls the execution of the generator function. The text then goes on to explain how this works.
I think it would make sense to change "controls execution of a generator function" to "controls execution of the generator function", but I can't think of any other change that would make things clearer.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24088>
_______________________________________
More information about the docs
mailing list