]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#14878: add cross-reference to the yield statement.
authorAndrew Kuchling <amk@amk.ca>
Fri, 10 May 2013 00:55:22 +0000 (20:55 -0400)
committerAndrew Kuchling <amk@amk.ca>
Fri, 10 May 2013 00:55:22 +0000 (20:55 -0400)
(Backported from 3.x by Jan Duzinkiewicz.)

Doc/reference/simple_stmts.rst

index d8cfd5c6ca5482a3b846a86180509c5d9a7c0452..a6fd0649a9196d9cc057e1dc6f357258b9eae7ea 100644 (file)
@@ -511,6 +511,9 @@ reference count or by being garbage collected), the generator-iterator's
 :meth:`close` method will be called, allowing any pending :keyword:`finally`
 clauses to execute.
 
+For full details of :keyword:`yield` semantics, refer to the :ref:`yieldexpr`
+section.
+
 .. note::
 
    In Python 2.2, the :keyword:`yield` statement was only allowed when the