]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134087: enforce signature of `threading.RLock` (#134178)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 19 May 2025 09:26:14 +0000 (11:26 +0200)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 09:26:14 +0000 (11:26 +0200)
commitd6dc33ed8086fbd79f6adaeac4e329f29a13f834
treeb25557bf330bf3ac59f741eef00035ed07f14fd4
parent9983c7d4416cac8deb2fded1ec9c7daf786c3a02
gh-134087: enforce signature of `threading.RLock` (#134178)

- Reject positional and keyword arguments in `_thread.RLock.__new__`.
- Convert `_thread.lock.__new__` to AC.
Doc/whatsnew/3.15.rst
Lib/test/lock_tests.py
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2025-05-18-12-23-07.gh-issue-134087.HilZWl.rst [new file with mode: 0644]
Modules/_threadmodule.c
Modules/clinic/_threadmodule.c.h