mirror of
https://github.com/python/cpython.git
synced 2026-04-24 12:50:47 +00:00
Add link to PEP 525 in Expressions. (GH-10333)
(cherry picked from commit bfe1839aa9)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
This commit is contained in:
parent
38bdaa47cf
commit
e40e205498
1 changed files with 5 additions and 1 deletions
|
|
@ -421,7 +421,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
|
||||
|
|
@ -506,6 +506,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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue