]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 22 May 2025 17:12:21 +0000 (19:12 +0200)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 17:12:21 +0000 (17:12 +0000)
commit068d570be84eab2ef271204e7ba9dd37391791d4
treed0b8441935bd0519398fd65953cc0b572f0f43cb
parentbbf8048c0f9c12b606da2e3e7b70e47e9f93f506
[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)

gh-134322: Fix `repr(threading.RLock)` (GH-134389)

Fix the `__repr__` value of `threading.RLock` from `_thread` module, when just created.
(cherry picked from commit fade146cfb1616ad7b3b918bedb86756dedf79e6)

Co-authored-by: Duprat <yduprat@gmail.com>
Lib/test/lock_tests.py
Lib/test/test_importlib/test_locks.py
Modules/_threadmodule.c