This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, serhiy.storchaka
Date 2020-02-02.16:49:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Serhiy, maybe I had not understood your proposal properly.

If you are asking about deprecating get_event_loop() call from outside of async code but implicit call get_running_loop() without a warning if called from async function -- it sounds like a brilliant idea.

Something like:

def get_event_loop():
    current_loop = _get_running_loop()
    if current_loop is not None:
        return current_loop
    warnings.warn("...", DeprecationWarning)  
    return get_event_loop_policy().get_event_loop()
Date User Action Args
2020-02-02 16:49:58asvetlovsetrecipients: + asvetlov, serhiy.storchaka
2020-02-02 16:49:58asvetlovsetmessageid: <>
2020-02-02 16:49:58asvetlovlinkissue39529 messages
2020-02-02 16:49:58asvetlovcreate