Author pmpp
Recipients mbussonn, minrk, njs, pmpp, willingc, yselivanov
Date 2018-12-10.17:35:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544463306.48.0.788709270274.issue34616@psf.upfronthosting.co.za>
In-reply-to
Content
indeed adding async flag to compile and providing some 'aexec' is a very good idea ! 

*an async repl is really usefull when stuck with a threadless python*

( specific engines, or emscripten cpython )

"top-level async is invalid syntax" : 
Rewinding the readline history stack to get code "async'ified" is probably not the best way : readline is specific to some platforms.
see https://github.com/pmp-p/aioprompt for a hack using that.

First raising an exception "top level code is async" and allowing user to get source code from exception would maybe a nice start to an async repl.
History
Date User Action Args
2018-12-10 17:35:06pmppsetrecipients: + pmpp, njs, yselivanov, willingc, minrk, mbussonn
2018-12-10 17:35:06pmppsetmessageid: <1544463306.48.0.788709270274.issue34616@psf.upfronthosting.co.za>
2018-12-10 17:35:06pmpplinkissue34616 messages
2018-12-10 17:35:06pmppcreate