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

Skip to content

Commit bfe1839

Browse files
andresdelfinoserhiy-storchaka
authored andcommitted
Add link to PEP 525 in Expressions. (GH-10333)
1 parent ae31e3f commit bfe1839

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
@@ -418,7 +418,7 @@ coroutine function to be an asynchronous generator. For example::
418418
def gen(): # defines a generator function
419419
yield 123
420420

421-
async def agen(): # defines an asynchronous generator function (PEP 525)
421+
async def agen(): # defines an asynchronous generator function
422422
yield 123
423423

424424
Due to their side effects on the containing scope, ``yield`` expressions
@@ -501,6 +501,10 @@ on the right hand side of an assignment statement.
501501
The proposal to introduce the :token:`yield_from` syntax, making delegation
502502
to sub-generators easy.
503503

504+
:pep:`525` - Asynchronous Generators
505+
The proposal that expanded on :pep:`492` by adding generator capabilities to
506+
coroutine functions.
507+
504508
.. index:: object: generator
505509
.. _generator-methods:
506510

0 commit comments

Comments
 (0)