Author gvanrossum
Recipients asvetlov, gvanrossum, yselivanov
Date 2019-03-25.23:49:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553557769.34.0.955375021383.issue36428@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-03-25 23:49:29gvanrossumsetrecipients: + gvanrossum, asvetlov, yselivanov
2019-03-25 23:49:29gvanrossumsetmessageid: <1553557769.34.0.955375021383.issue36428@roundup.psfhosted.org>
2019-03-25 23:49:29gvanrossumlinkissue36428 messages
2019-03-25 23:49:29gvanrossumcreate