[Python-checkins] cpython (2.7): #14878: add cross-reference to the yield statement.

andrew.kuchling python-checkins at python.org
Fri May 10 02:55:46 CEST 2013


http://hg.python.org/cpython/rev/7b8c0bf8fcb8
changeset:   83701:7b8c0bf8fcb8
branch:      2.7
parent:      83692:9b86fb6f5bc9
user:        Andrew Kuchling <amk at amk.ca>
date:        Thu May 09 20:55:22 2013 -0400
summary:
  #14878: add cross-reference to the yield statement.
(Backported from 3.x by Jan Duzinkiewicz.)

files:
  Doc/reference/simple_stmts.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -511,6 +511,9 @@
 :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

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


More information about the Python-checkins mailing list