[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.
Andrew Svetlov
report at bugs.python.org
Fri Dec 6 06:04:05 EST 2019
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Asyncio has a few own exceptions, the library tries to utilize existing ones, e.g. ValueError, TypeError, and OSError family. RuntimeError falls into this category.
get_event_loop() never returns None, it was from very beginning. If we change it existing third-party code will be broken. So, no way, sorry.
I really don't think we can change anything here.
Would you describe cases when you need an implicit loop instance but there is no running loop currently?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38955>
_______________________________________
More information about the Python-bugs-list
mailing list