File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ coroutine function to be an asynchronous generator. For example::
421
421
def gen(): # defines a generator function
422
422
yield 123
423
423
424
- async def agen(): # defines an asynchronous generator function (PEP 525)
424
+ async def agen(): # defines an asynchronous generator function
425
425
yield 123
426
426
427
427
Due to their side effects on the containing scope, ``yield `` expressions
@@ -506,6 +506,10 @@ on the right hand side of an assignment statement.
506
506
The proposal to introduce the :token: `yield_from ` syntax, making delegation
507
507
to sub-generators easy.
508
508
509
+ :pep: `525 ` - Asynchronous Generators
510
+ The proposal that expanded on :pep: `492 ` by adding generator capabilities to
511
+ coroutine functions.
512
+
509
513
.. index :: object: generator
510
514
.. _generator-methods :
511
515
You can’t perform that action at this time.
0 commit comments