Author blazespinnaker
Recipients asvetlov, blazespinnaker, yselivanov
Date 2020-10-22.13:47:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In jupyter / ipython, other repls, as well as from libraries,  asyncio code can be called.  To simplify integration, there should be a way for libraries to transparently do the right thing, call await or start a new global running event loop.  

This can be done without breaking the colored functions design constraint (only async can call async) and would not lead to dynamic coroutine architectures like gevent / lua.

The change would significantly reduce confusion that is pervasive in the python ecosystem and has lead to many people using a defacto approach of monkey patching (a monkey patch which only works on the surface).

Alternative, if this approach simply can not be accepted, better and more emphasized headline asyncio documentation would be appropriate to explain why the constraint is in place and the best patterns to use to work around the problem.   

It took me a lot of googling before I understood the reasoning of what is a very significant design choice.

There are many instances of this issue causing problems, but let me highlight this link:
Date User Action Args
2020-10-22 13:47:16blazespinnakersetrecipients: + blazespinnaker, asvetlov, yselivanov
2020-10-22 13:47:16blazespinnakersetmessageid: <>
2020-10-22 13:47:16blazespinnakerlinkissue42117 messages
2020-10-22 13:47:16blazespinnakercreate