Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 774d46f

Browse files
Add link to PEP 525 in Expressions. (GH-10333)
(cherry picked from commit bfe1839) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 3ede2b1 commit 774d46f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Doc/reference/expressions.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ coroutine function to be an asynchronous generator. For example::
384384
def gen(): # defines a generator function
385385
yield 123
386386

387-
async def agen(): # defines an asynchronous generator function (PEP 525)
387+
async def agen(): # defines an asynchronous generator function
388388
yield 123
389389

390390
Generator functions are described below, while asynchronous generator
@@ -459,6 +459,10 @@ on the right hand side of an assignment statement.
459459
The proposal to introduce the :token:`yield_from` syntax, making delegation
460460
to sub-generators easy.
461461

462+
:pep:`525` - Asynchronous Generators
463+
The proposal that expanded on :pep:`492` by adding generator capabilities to
464+
coroutine functions.
465+
462466
.. index:: object: generator
463467
.. _generator-methods:
464468

0 commit comments

Comments
 (0)