summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2015-05-05 19:04:35 (GMT)
committerGuido van Rossum <guido@python.org>2015-05-05 19:04:35 (GMT)
commit19dac071ef54340ec484d65f2c38dd3dd170fd8b (patch)
treed305a84379d1ac26b46445e906fb0d349759ab89 /Doc
parentad17be76823d6570641639d921a3cf4a09bbc86a (diff)
parentd0150ad59ee5bb1be2f5f75c6fef17c23cd00c8b (diff)
downloadcpython-19dac071ef54340ec484d65f2c38dd3dd170fd8b.zip
cpython-19dac071ef54340ec484d65f2c38dd3dd170fd8b.tar.gz
cpython-19dac071ef54340ec484d65f2c38dd3dd170fd8b.tar.bz2
Issue 24088: Clarify semantics of yield expression (merge from 3.4).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 12f9f2f..efe4d0b 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -325,7 +325,7 @@ thus can only be used in the body of a function definition. Using a yield
expression in a function's body causes that function to be a generator.
When a generator function is called, it returns an iterator known as a
-generator. That generator then controls the execution of a generator function.
+generator. That generator then controls the execution of the generator function.
The execution starts when one of the generator's methods is called. At that
time, the execution proceeds to the first yield expression, where it is
suspended again, returning the value of :token:`expression_list` to the generator's