From 59fd98128e6e342590c034c31a88765b2cf4965d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Mon, 5 Nov 2018 10:53:07 -0300 Subject: [PATCH 1/2] Add link to PEP 525 --- 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 fd7df4cfba973b..a08062750c7a5b 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 + function coroutines. + .. index:: object: generator .. _generator-methods: From 4a527ca81f63f4c96dcb07bd41c6f4fd9240dc7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Mon, 5 Nov 2018 11:17:24 -0300 Subject: [PATCH 2/2] Update expressions.rst --- Doc/reference/expressions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index a08062750c7a5b..fb27857a6f42d1 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -503,7 +503,7 @@ on the right hand side of an assignment statement. :pep:`525` - Asynchronous Generators The proposal that expanded on :pep:`492` by adding generator capabilities to - function coroutines. + coroutine functions. .. index:: object: generator .. _generator-methods: