TGViewer
CPython notes CPython notes @cpython_notes · 2.39K subscribers
Post #112 1.32K
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:
  • ❤ 15
  • 😱 10
  • 🍌 8
  • 👍 5
  • 👌 4
More from @cpython_notes
  1. Sep 8, 2026https://discuss.python.org/t/docstrings-for-type-aliases/108901 По моему мнению адекватная…
  2. Aug 23, 2026https://blog.python.org/2026/08/the-python-documentation-is-now-available-in-russian/ Внез…
  3. Aug 20, 2026https://github.com/python/peps/pull/5101 Я бы сказал пушка. За ссылку спасибо @miryanovsn
  4. Aug 14, 2026Никита Соболев aka автор @opensource_findings собрал папку с русскоязычными сообществами п…
  5. Aug 5, 2026https://peps.python.org/pep-0797/ был отклонен руководящим советом.
  6. Jul 14, 2026https://peps.python.org/pep-0836/ Продолжение.
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →