消息 [341232]
I recall the idea of passing a specific flag to `compile()` for accepting await and family on top level of passed code string.
Than compile can return a code object with CO_COROUTINE flag set.
Returned code object can be analyzed for this flag and executed with `await exec(code)`.
Actual coroutine executor can be asyncio/trio/twisted/whatever, it depends on what code calls this `await`.
Did I miss something? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2019-05-01 20:22:16 | asvetlov | 修改 | recipients:
+ asvetlov, brett.cannon, njs, pmpp, yselivanov, willingc, minrk, mbussonn, xtreak |
| 2019-05-01 20:22:16 | asvetlov | 修改 | messageid: <1556742136.8.0.565687879448.issue34616@roundup.psfhosted.org> |
| 2019-05-01 20:22:16 | asvetlov | 链接 | issue34616 messages |
| 2019-05-01 20:22:16 | asvetlov | 创建 | |
|