Author asvetlov
Recipients asvetlov, brett.cannon, mbussonn, minrk, njs, pmpp, willingc, xtreak, yselivanov
Date 2019-05-01.20:22:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556742136.8.0.565687879448.issue34616@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2019-05-01 20:22:16asvetlovsetrecipients: + asvetlov, brett.cannon, njs, pmpp, yselivanov, willingc, minrk, mbussonn, xtreak
2019-05-01 20:22:16asvetlovsetmessageid: <1556742136.8.0.565687879448.issue34616@roundup.psfhosted.org>
2019-05-01 20:22:16asvetlovlinkissue34616 messages
2019-05-01 20:22:16asvetlovcreate