summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-17 18:10:55 (GMT)
committerGitHub <noreply@github.com>2024-10-17 18:10:55 (GMT)
commitd8c864816121547338efa43c56e3f75ead98a924 (patch)
tree6930c118c844cd4050a5d1c025974d98f4dbc734 /Misc/NEWS.d
parentb454662921fd3a1fc27169e91aca03aadea08817 (diff)
downloadcpython-d8c864816121547338efa43c56e3f75ead98a924.zip
cpython-d8c864816121547338efa43c56e3f75ead98a924.tar.gz
cpython-d8c864816121547338efa43c56e3f75ead98a924.tar.bz2
gh-125541: Make Ctrl-C interrupt `threading.Lock.acquire()` on Windows (#125546)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2024-10-15-16-50-03.gh-issue-125541.FfhmWo.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-15-16-50-03.gh-issue-125541.FfhmWo.rst b/Misc/NEWS.d/next/Library/2024-10-15-16-50-03.gh-issue-125541.FfhmWo.rst
new file mode 100644
index 0000000..7a20bca
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-10-15-16-50-03.gh-issue-125541.FfhmWo.rst
@@ -0,0 +1,4 @@
+Pressing :kbd:`Ctrl-C` while blocked in :meth:`threading.Lock.acquire`,
+:meth:`threading.RLock.acquire`, and :meth:`threading.Thread.join` now
+interrupts the function call and raises a :exc:`KeyboardInterrupt` exception
+on Windows, similar to how those functions behave on macOS and Linux.