]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add link to PEP 525 in Expressions. (GH-10333)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 7 Nov 2018 18:32:05 +0000 (10:32 -0800)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 18:32:05 +0000 (10:32 -0800)
(cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/reference/expressions.rst

index de9ff57e5ecd5de80e55fbd7334bfb9946abe614..3b50efe5e27770564649fc1d746dcd15ed15ac44 100644 (file)
@@ -421,7 +421,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
@@ -506,6 +506,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: