From 67f84a78f0634dfe5e318ae73405b54257fa2e56 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Thu, 9 May 2013 20:55:22 -0400 Subject: #14878: add cross-reference to the yield statement. (Backported from 3.x by Jan Duzinkiewicz.) --- Doc/reference/simple_stmts.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index d8cfd5c..a6fd064 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 -- cgit v0.12