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.