[issue39529] Deprecate get_event_loop()

Yury Selivanov report at bugs.python.org
Fri Feb 7 14:32:10 EST 2020


Yury Selivanov <yselivanov at gmail.com> added the comment:

I think we still use get_event_loop() in asyncio code, no? If we do, we should start by raising deprecation warnings in those call sites, e.g. if a Future or Lock is created outside of a coroutine and no explicit event loop is passed. We should do this in 3.9. We can then think about deprecating get_event_loop in 3.10.

----------

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


More information about the Python-bugs-list mailing list