[issue39529] Deprecate get_event_loop()

Serhiy Storchaka report at bugs.python.org
Sun Feb 2 12:12:56 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Yes, it is what I meant.

Many code written before 3.7 use get_event_loop() because there was no get_running_loop() yet. Now, to avoid deprecation (and making the code more robust) it should be rewritten with using get_running_loop() or get_event_loop() depending on Python version. It is cumbersome, and causes a code churn.

----------

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


More information about the Python-bugs-list mailing list