Commit bfe1839a authored by Andrés Delfino's avatar Andrés Delfino Committed by Serhiy Storchaka

Add link to PEP 525 in Expressions. (GH-10333)

parent ae31e3fb
...@@ -418,7 +418,7 @@ coroutine function to be an asynchronous generator. For example:: ...@@ -418,7 +418,7 @@ coroutine function to be an asynchronous generator. For example::
def gen(): # defines a generator function def gen(): # defines a generator function
yield 123 yield 123
async def agen(): # defines an asynchronous generator function (PEP 525) async def agen(): # defines an asynchronous generator function
yield 123 yield 123
Due to their side effects on the containing scope, ``yield`` expressions Due to their side effects on the containing scope, ``yield`` expressions
...@@ -501,6 +501,10 @@ on the right hand side of an assignment statement. ...@@ -501,6 +501,10 @@ on the right hand side of an assignment statement.
The proposal to introduce the :token:`yield_from` syntax, making delegation The proposal to introduce the :token:`yield_from` syntax, making delegation
to sub-generators easy. 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 .. index:: object: generator
.. _generator-methods: .. _generator-methods:
......
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