Skip to content

Commit 9413a3a

Browse files
committed
add reference to PEP 525 for async generator semantics
1 parent 64e89d3 commit 9413a3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

peps/pep-0798.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ generator::
217217
for x in it:
218218
yield from expr
219219

220-
Since ``yield from`` is not allowed inside of async generators, the equivalent
220+
Since ``yield from`` is not allowed inside of async generators (see the section
221+
of :pep:`525` on `Asynchronous yield from
222+
<https://peps.python.org/pep-0525/#asynchronous-yield-from>`__), the equivalent
221223
for ``(*expr async for x in ait())``, is more like the following (though of
222224
course this new form should not define or reference the looping variable
223225
``i``)::

0 commit comments

Comments
 (0)