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

Yury Selivanov report at bugs.python.org
Tue Nov 17 14:04:05 EST 2020


New submission from Yury Selivanov <yselivanov at gmail.com>:

asyncio.Lock and other primitives should no longer accept the `loop` parameter. They should also stop storing the current loop in the `self._loop` attribute. Instead, they should use `get_running_loop()` whenever they need to access the loop.

----------
components: asyncio
messages: 381275
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: remove the 'loop' parameter from __init__ in all classes in asyncio.locks
versions: Python 3.10

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


More information about the New-bugs-announce mailing list