Matthias Bussonnier <bussonniermatth...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34616>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to