[Python-ideas] Re: Top Level Await in Python like in Deno

2021-03-24 Thread Joao S. O. Bueno
Sorry - previous reply was sent empty. So, you probably can do with `asyncio.run`: ``` In [26]: import asyncio In [27]: asyncio.run(asyncio.sleep(2)) ``` https://docs.python.org/3/library/asyncio-task.html#asyncio.run On Wed, 24 Mar 2021 at 06:44, wrote: > It is not the same, it will work in

[Python-ideas] Re: Top Level Await in Python like in Deno

2021-03-24 Thread Joao S. O. Bueno
On Wed, 24 Mar 2021 at 06:44, wrote: > It is not the same, it will work in interactive mode But I want to > run application without interactive mode > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to

[Python-ideas] Re: Top Level Await in Python like in Deno

2021-03-24 Thread redradist
It is not the same, it will work in interactive mode But I want to run application without interactive mode ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org