summaryrefslogtreecommitdiffstats
path: root/Doc/reference/simple_stmts.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-01-14 04:43:24 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-01-14 04:43:24 (GMT)
commit0ed8019c20b73f67397e53c710ddd076f0f384fd (patch)
treed65cc4a29b3220f41a3063f525c0e08e365836e2 /Doc/reference/simple_stmts.rst
parent2dfe6b00edde81d752d37d280cd47fd5aac9a433 (diff)
downloadcpython-0ed8019c20b73f67397e53c710ddd076f0f384fd.zip
cpython-0ed8019c20b73f67397e53c710ddd076f0f384fd.tar.gz
cpython-0ed8019c20b73f67397e53c710ddd076f0f384fd.tar.bz2
Add versionchanged notes for PEP 380
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r--Doc/reference/simple_stmts.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index d98b829..3bd0894 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -470,10 +470,13 @@ resumed before it is finalized (by reaching a zero 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.
-When ``yield from expression`` is used, it treats the supplied expression as
+When ``yield from <expr>`` is used, it treats the supplied expression as
a subiterator, producing values from it until the underlying iterator is
exhausted.
+ .. versionchanged:: 3.3
+ Added ``yield from <expr>`` to delegate control flow to a subiterator
+
For full details of :keyword:`yield` semantics, refer to the :ref:`yieldexpr`
section.