Commit 67f84a78 authored by Andrew Kuchling's avatar Andrew Kuchling

#14878: add cross-reference to the yield statement.

(Backported from 3.x by Jan Duzinkiewicz.)
parent ce34ba6e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment