Feature or enhancement
Since Python 3.2, pressing ctrl-c (SIGINT) interrupts threading.Lock.acquire() on POSIX platforms, including Linux and macOS. However, this does not work on Windows.
Now that threading.Lock and threading.RLock use PyMutex and _PyRecursiveMutex internally, this should be a lot easier to implement efficiently.
See also #125058
cc @pitrou @zooba @gpshead
Linked PRs
Feature or enhancement
Since Python 3.2, pressing
ctrl-c(SIGINT) interruptsthreading.Lock.acquire()on POSIX platforms, including Linux and macOS. However, this does not work on Windows.Now that
threading.Lockandthreading.RLockusePyMutexand_PyRecursiveMutexinternally, this should be a lot easier to implement efficiently.See also #125058
cc @pitrou @zooba @gpshead
Linked PRs
threading.Lock.acquire()on Windows #125546