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

Kyle Stanley report at bugs.python.org
Tue Nov 24 18:15:32 EST 2020


Kyle Stanley <aeros167 at gmail.com> added the comment:

> Is there anyone who is assigned to removing the deprecated `loop` parameter from `asyncio` codebase?

> If not I can take this task, I believe I have enough free time and curiosity to do that :)

You can certainly feel free to work on that and it would definitely be appreciated! However, I would recommend splitting it into several PRs, basically as "Remove *loop* parameter from x` rather than doing a massive PR that removes it from everywhere that it was deprecated. This makes the review process easier.

Also, keep in mind that there are some uses of *loop* that are still perfectly valid and will remain so, such as in `asyncio.run_coroutine_threadsafe()`. It should only be removed in locations where there was a deprecation warning from 3.8 or sooner present (as we give two major versions of deprecation notice before most breaking changes are made -- this has been made official policy as of PEP 387).

----------

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


More information about the Python-bugs-list mailing list