From d0150ad59ee5bb1be2f5f75c6fef17c23cd00c8b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 5 May 2015 12:02:01 -0700 Subject: Issue 24088: Clarify semantics of yield expression. --- Doc/reference/expressions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 1a5088a..2d19660 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 -- cgit v0.12