[issue41247] asyncio.set_running_loop() cache running loop holder

Yury Selivanov report at bugs.python.org
Wed Jul 8 15:30:41 EDT 2020


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

> n python to know if there could be a context switch to get_running_loop while set_running_loop is running.


No, it's protected by the GIL.

Good catch, and merged.

----------
nosy: +yselivanov
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list