https://peps.python.org/pep-0828/ Был принят. Теперь можно будет…

https://peps.python.org/pep-0828/
Был принят.

Теперь можно будет делать так
async def agenerator():
yield 1
yield 2
return 3

async def main():
result = yield from agenerator()
assert result == 3
Python Enhancement Proposals (PEPs)
PEP 828 – Supporting ‘yield from’ in asynchronous generators | peps.python.org
This PEP introduces support for yield from in an asynchronous generator function:
❤17😱12🍌8👍5👌4
7 сентября 2026 г. 3 тыс.