Matthias Bussonnier <bussonniermatth...@gmail.com> added the comment:

So through time our heuristic to check wether a code should be async or not 
grew: 

https://github.com/ipython/ipython/blob/320d21bf56804541b27deb488871e488eb96929f/IPython/core/async_helpers.py#L94-L165

There also seem to be some code that uses `codeop.compile_command` to figure 
out wether the user code is valid syntax (or not), so that would need some 
update too. 

I'm thinking of submitting a talk at PyCon to explain what we've discover so 
far in IPython.

----------

_______________________________________
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