[Python-checkins] cpython (merge 3.4 -> default): Issue 24088: Clarify semantics of yield expression (merge from 3.4).

guido.van.rossum python-checkins at python.org
Tue May 5 21:04:47 CEST 2015


https://hg.python.org/cpython/rev/6e59d82d3d09
changeset:   95883:6e59d82d3d09
parent:      95881:395e190ead36
parent:      95882:b87d96e0708e
user:        Guido van Rossum <guido at python.org>
date:        Tue May 05 12:04:35 2015 -0700
summary:
  Issue 24088: Clarify semantics of yield expression (merge from 3.4).

files:
  Doc/reference/expressions.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -325,7 +325,7 @@
 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list