[issue34616] implement "Async exec"

Matthias Bussonnier report at bugs.python.org
Sat May 4 11:38:36 EDT 2019


Matthias Bussonnier <bussonniermatthias at gmail.com> added the comment:

> Did I miss something?

No I think for the async stuff that should be a big improvement already. 
Either a flag, or different "MODE", like 'single','exec' and 'eval'.

I'l love for something like 'exec' but where not only we can have multiple statement, but where the last statement behave like single and "expression statements that evaluate to something other than None will be printed".

The other thing would be for this mode to not turn the the fist statement into a module docstring in the AST if it is a string.

I know that most of these are slightly orthogonal but do have backward compatibility consequences.

I'll try to be at PyCon "Mentored Sprints" this afternoon, I'll be ha[[y to be mentored into contributing this to CPython. 

I'm also happy to discuss writing this in a pep.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34616>
_______________________________________


More information about the Python-bugs-list mailing list