← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Noah Simon
收信人 Noah Simon, asvetlov, yselivanov
日期 2018-05-09.03:22:39
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1525836160.23.0.682650639539.issue33447@psf.upfronthosting.co.za>
In-reply-to
内容
It would be very useful to add an asynchronous lambda syntax, as a shortcut for coroutines. I'm not experienced enough to write a PEP or edit the C source, but I have some ideas for syntax:

import asyncio
foo = async lambda a,b: 5 + await bar(b)
历史
日期 用户 动作 参数
2018-05-09 03:22:40Noah Simon修改recipients: + Noah Simon, asvetlov, yselivanov
2018-05-09 03:22:40Noah Simon修改messageid: <1525836160.23.0.682650639539.issue33447@psf.upfronthosting.co.za>
2018-05-09 03:22:40Noah Simon链接issue33447 messages
2018-05-09 03:22:39Noah Simon创建