[New-bugs-announce] [issue36428] Support AutoAwait?
Guido van Rossum
report at bugs.python.org
Mon Mar 25 19:49:29 EDT 2019
New submission from Guido van Rossum <guido at python.org>:
I just found out about IPython's autoawait feature:
https://ipython.readthedocs.io/en/stable/interactive/autoawait.html
I wonder if we should at least help them do this right in Python 3.8 by having a flag to compile() that allows `await` in the toplevel syntax? It looks like a relatively small change would suffice to make compiler_visit_expr1() in Python/compile.c accept (and generate correct code for) Await_kind outside async functions, if some flag is set.
----------
components: Interpreter Core, asyncio
messages: 338840
nosy: asvetlov, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: Support AutoAwait?
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36428>
_______________________________________
More information about the New-bugs-announce
mailing list