From: Andrew Kuchling Date: Fri, 10 May 2013 00:55:22 +0000 (-0400) Subject: #14878: add cross-reference to the yield statement. X-Git-Tag: v2.7.5~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67f84a78f0634dfe5e318ae73405b54257fa2e56;p=thirdparty%2FPython%2Fcpython.git #14878: add cross-reference to the yield statement. (Backported from 3.x by Jan Duzinkiewicz.) --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index d8cfd5c6ca54..a6fd0649a919 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -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