diff options
author | Andrew Kuchling <amk@amk.ca> | 2013-05-10 00:55:22 (GMT) |
---|---|---|
committer | Andrew Kuchling <amk@amk.ca> | 2013-05-10 00:55:22 (GMT) |
commit | 67f84a78f0634dfe5e318ae73405b54257fa2e56 (patch) | |
tree | 104f02795a321a719d8c7457132771b0e15c2d55 | |
parent | ce34ba6e3c5f44d40d723933cd9c03af70a50410 (diff) | |
download | cpython-67f84a78f0634dfe5e318ae73405b54257fa2e56.zip cpython-67f84a78f0634dfe5e318ae73405b54257fa2e56.tar.gz cpython-67f84a78f0634dfe5e318ae73405b54257fa2e56.tar.bz2 |
#14878: add cross-reference to the yield statement.
(Backported from 3.x by Jan Duzinkiewicz.)
-rw-r--r-- | 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 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 |