gh-87135: threading.Lock: Raise rather than hang on Python finalization (GH-135991)
After Python finalization gets to the point where no other thread can attach thread state, attempting to acquire a Python lock must hang. Raise PythonFinalizationError instead of hanging.
P
Petr Viktorin committed
fe119a08177feea27611450b0bb3901e330a2d58
Parent: 845263a
Committed by GitHub <[email protected]>
on 7/1/2025, 8:57:42 AM