summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-11-07 18:12:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-07 18:12:12 (GMT)
commitbfe1839aa994f0d84471254418a4ecfa7c7c9b9c (patch)
tree32a1ab805f54c9cebd8c597cd4fdb28962982ee5
parentae31e3fbf4e7def772fc1c94342d1011424fdc99 (diff)
downloadcpython-bfe1839aa994f0d84471254418a4ecfa7c7c9b9c.zip
cpython-bfe1839aa994f0d84471254418a4ecfa7c7c9b9c.tar.gz
cpython-bfe1839aa994f0d84471254418a4ecfa7c7c9b9c.tar.bz2
Add link to PEP 525 in Expressions. (GH-10333)
-rw-r--r--Doc/reference/expressions.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index fd7df4c..fb27857 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -418,7 +418,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
Due to their side effects on the containing scope, ``yield`` expressions
@@ -501,6 +501,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: