Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ coroutine function to be an asynchronous generator. For example::
def gen(): # defines a generator function
yield 123

async def agen(): # defines an asynchronous generator function (PEP 525)
async def agen(): # defines an asynchronous generator function
yield 123

Generator functions are described below, while asynchronous generator
Expand Down Expand Up @@ -459,6 +459,10 @@ on the right hand side of an assignment statement.
The proposal to introduce the :token:`yield_from` syntax, making delegation
to sub-generators easy.

:pep:`525` - Asynchronous Generators
The proposal that expanded on :pep:`492` by adding generator capabilities to
coroutine functions.

.. index:: object: generator
.. _generator-methods:

Expand Down