On 13/06/20 8:47 am, J. Pic wrote:
Why not make using await do asyncio.run "behind the scenes" when called outside async function ?

That would directly tie the await syntax to the asyncio module. This
would not be a good idea. Currently there is nothing special about
asyncio -- it's just one of many possible frameworks built on
async/await. This proposal would elevate it to a very special status,
making it effectively part of the language rather than just a module
in the stdlib.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ICP57SMRGCCDPNINIRLAK3UV5FKH3Q4C/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to