[issue34616] implement "Async exec"
pmpp
report at bugs.python.org
Mon Dec 10 12:35:06 EST 2018
pmpp <pmpp.pub at gmail.com> added the comment:
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.
----------
nosy: +pmpp
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34616>
_______________________________________
More information about the Python-bugs-list
mailing list