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 davidbrochart
Recipients Rokas K. (rku), crusaderky, davidbrochart, djarb, jab, jcea, martin.panter, njs, pmpp, yselivanov, zzzeek
Date 2021-03-24.19:42:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616614931.93.0.958305171354.issue22239@roundup.psfhosted.org>
In-reply-to
Content
Regarding the initial message in this issue, and enabling recursive event loops, this has proved to be very useful when an event loop is already running and some non-async code needs to run async code. This situation is very frequent when e.g. a library is designed to be async-first, and also provides a blocking API which just wraps the async code by running it until complete.
The nest-asyncio library (https://github.com/erdewit/nest_asyncio) allows that by patching asyncio's event loop, but obviously this doesn't work with other event loops such as uvloop. I was wondering if things had changed since the original post of this issue, and if such a feature had any chance to make it into the standard library.
History
Date User Action Args
2021-03-24 19:42:12davidbrochartsetrecipients: + davidbrochart, jcea, djarb, zzzeek, njs, jab, pmpp, martin.panter, yselivanov, Rokas K. (rku), crusaderky
2021-03-24 19:42:11davidbrochartsetmessageid: <1616614931.93.0.958305171354.issue22239@roundup.psfhosted.org>
2021-03-24 19:42:11davidbrochartlinkissue22239 messages
2021-03-24 19:42:11davidbrochartcreate