You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
threading.RLock must not support *args, **kwargs arguments #102029
It was still explicitly allowed but pulled out from the args in 3.2 even though it was not passed on to the new _CRLock.
There is a very tiny amount of code out there that still blindly passes a value for this (now no-op) argument. The fix to such code is trivial: remove the no-op argument.
Activity
sobolevn commentedon Feb 18, 2023
Or even it migth be a good time to also deprecate
_PyRLockcompletely?See #57906
This was discussed even 11 years ago. Maybe the time has come? :)
sobolevn commentedon Feb 19, 2023
CC @njsmith @pitrou
pythongh-102029: Sync `__new__` sigs of `_CRLock` and `_PyRLock` in `…
gpshead commentedon May 31, 2023
History:
Python up through 2.7 and 3.1
threading.RLocksupported an undocumentedverboseargument. https://github.com/python/cpython/blob/v2.7.18/Lib/threading.py#L132It was still explicitly allowed but pulled out from the args in 3.2 even though it was not passed on to the new _CRLock.
There is a very tiny amount of code out there that still blindly passes a value for this (now no-op) argument. The fix to such code is trivial: remove the no-op argument.
gh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#…
hugovk commentedon Nov 10, 2023
Anything more to do here, or can we close this issue?