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.

作者 pmpp
收信人 mbussonn, minrk, njs, pmpp, willingc, yselivanov
日期 2018-12-10.17:35:06
SpamBayes Score -1.0
Marked as misclassified
Message-id <1544463306.48.0.788709270274.issue34616@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2018-12-10 17:35:06pmpp修改recipients: + pmpp, njs, yselivanov, willingc, minrk, mbussonn
2018-12-10 17:35:06pmpp修改messageid: <1544463306.48.0.788709270274.issue34616@psf.upfronthosting.co.za>
2018-12-10 17:35:06pmpp链接issue34616 messages
2018-12-10 17:35:06pmpp创建