Message338840
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. |
|
Date |
User |
Action |
Args |
2019-03-25 23:49:29 | gvanrossum | set | recipients:
+ gvanrossum, asvetlov, yselivanov |
2019-03-25 23:49:29 | gvanrossum | set | messageid: <1553557769.34.0.955375021383.issue36428@roundup.psfhosted.org> |
2019-03-25 23:49:29 | gvanrossum | link | issue36428 messages |
2019-03-25 23:49:29 | gvanrossum | create | |
|