[Python-checkins] Add link to PEP 525 in Expressions. (GH-10333)

Miss Islington (bot) webhook-mailer at python.org
Wed Nov 7 13:32:09 EST 2018


https://github.com/python/cpython/commit/e40e205498b45cb0d6a12d2cc79a3c75712cd054
commit: e40e205498b45cb0d6a12d2cc79a3c75712cd054
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-07T10:32:05-08:00
summary:

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

(cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c)

Co-authored-by: Andrés Delfino <adelfino at gmail.com>

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index de9ff57e5ecd..3b50efe5e277 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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:
 



More information about the Python-checkins mailing list