Message242289
| Author |
Jim.Jewett |
| Recipients |
Jim.Jewett, docs@python, gvanrossum, vstinner, yselivanov |
| Date |
2015年04月30日.22:03:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1430431401.04.0.279681216808.issue24088@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
https://docs.python.org/3/reference/expressions.html#yield-expressions
Current:
"""
When a generator function is called, it returns an iterator known as a generator. That generator then controls the execution of a generator function. The execution starts when one of the generator’s methods is called.
"""
At a minimum, that seems to be using "generator function" in two different ways, but I think there are other problems.
Proposed:
"""
When a generator function is called, it returns a special kind of iterator known as a generator. The iteration starts when one of the generator’s methods is called.
""" |
|