]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143424: Fix assertion in _PyMutex_LockTimed (gh-143439)
authorSam Gross <colesbury@gmail.com>
Tue, 6 Jan 2026 14:40:14 +0000 (09:40 -0500)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 14:40:14 +0000 (09:40 -0500)
commit841b7482dd3584545d43fbfa78a27b1b5a3dfea3
treed756e1a53f1425a9ff6d37e90eeccf591bad3c6e
parentd745b60ef234228beea30e8d182358f29ffb1cb4
gh-143424: Fix assertion in _PyMutex_LockTimed (gh-143439)

The assertion doesn't necessarily hold for `threading.Lock`, so allow
the lock to be unlocked if `_PY_LOCK_PYTHONLOCK` is set on the flags.
Python/lock.c