Message361248
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:58 | asvetlov | set | recipients:
+ asvetlov, serhiy.storchaka |
2020-02-02 16:49:58 | asvetlov | set | messageid: <1580662198.25.0.732879940346.issue39529@roundup.psfhosted.org> |
2020-02-02 16:49:58 | asvetlov | link | issue39529 messages |
2020-02-02 16:49:58 | asvetlov | create | |
|