New submission from Guido van Rossum <gu...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue36428> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com