This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients asvetlov, lschoe, yselivanov
Date 2019-10-28.19:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572289669.74.0.542530747409.issue38599@roundup.psfhosted.org>
In-reply-to
Content
> It would be nice if asyncio.run() uses the default loop if it's available (and not running), and that the default loop remains intact after the call returns. 

Unfortunately it's not possible to implement that reliably and without a bunch of surprising behaviors.

Also, if you want the loop to be intact after asyncio.run, it means that you would not want to close it;that would defeat the purpose of asyncio.run.
History
Date User Action Args
2019-10-28 19:07:49yselivanovsetrecipients: + yselivanov, asvetlov, lschoe
2019-10-28 19:07:49yselivanovsetmessageid: <1572289669.74.0.542530747409.issue38599@roundup.psfhosted.org>
2019-10-28 19:07:49yselivanovlinkissue38599 messages
2019-10-28 19:07:49yselivanovcreate