[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

Yury Selivanov report at bugs.python.org
Thu Nov 19 13:17:52 EST 2020


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

> The safe code can look like:
>
> global_lock = threading.Lock()  like GIL

SGTM. We can use this strategy for all synchronization primitives and for objects like asyncio.Queue.

----------

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


More information about the Python-bugs-list mailing list