[issue39529] Deprecate get_event_loop()

Min RK report at bugs.python.org
Wed Dec 1 06:19:52 EST 2021


Min RK <benjaminrk at gmail.com> added the comment:

Thank you! I think I have enough information to update.

> IMHO, asyncio.set_event_loop()...[is] not deprecated by oversight.

I'm curious, what is an appropriate use of `asyncio.set_event_loop()` if you can never get the event loop with `get_event_loop()`? If you always have to pass the handle around anyway, I'm not sure what the use case for a write-only global would be.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39529>
_______________________________________


More information about the Python-bugs-list mailing list