Skip to content

Commit e40e205

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 38bdaa4 commit e40e205

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/reference/expressions.rst

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

424-
async def agen(): # defines an asynchronous generator function (PEP 525)
424+
async def agen(): # defines an asynchronous generator function
425425
yield 123
426426

427427
Due to their side effects on the containing scope, ``yield`` expressions
@@ -506,6 +506,10 @@ on the right hand side of an assignment statement.
506506
The proposal to introduce the :token:`yield_from` syntax, making delegation
507507
to sub-generators easy.
508508

509+
:pep:`525` - Asynchronous Generators
510+
The proposal that expanded on :pep:`492` by adding generator capabilities to
511+
coroutine functions.
512+
509513
.. index:: object: generator
510514
.. _generator-methods:
511515

0 commit comments

Comments
 (0)