From 774d46f86cb3addfec7a5c48077bd554c0c02104 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 7 Nov 2018 10:35:39 -0800 Subject: [PATCH] Add link to PEP 525 in Expressions. (GH-10333) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c) Co-authored-by: Andrés Delfino --- Doc/reference/expressions.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 879eba8f586c..05f62cd38ba9 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -384,7 +384,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 Generator functions are described below, while asynchronous generator @@ -459,6 +459,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: -- 2.47.3