Message341232
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? |
|
Date |
User |
Action |
Args |
2019-05-01 20:22:16 | asvetlov | set | recipients:
+ asvetlov, brett.cannon, njs, pmpp, yselivanov, willingc, minrk, mbussonn, xtreak |
2019-05-01 20:22:16 | asvetlov | set | messageid: <1556742136.8.0.565687879448.issue34616@roundup.psfhosted.org> |
2019-05-01 20:22:16 | asvetlov | link | issue34616 messages |
2019-05-01 20:22:16 | asvetlov | create | |
|