]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add link to PEP 525 in Expressions. (GH-10333)
authorAndrés Delfino <adelfino@gmail.com>
Wed, 7 Nov 2018 18:12:12 +0000 (15:12 -0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Nov 2018 18:12:12 +0000 (20:12 +0200)
Doc/reference/expressions.rst

index fd7df4cfba973b4d91663818337bbdee0547372d..fb27857a6f42d16ca72599d690200e521c06babe 100644 (file)
@@ -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: