https://github.com/python/cpython/commit/626b4a824ed007e9562394ab152ea975c41c2eac
commit: 626b4a824ed007e9562394ab152ea975c41c2eac
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-10-06T21:43:16-07:00
summary:

[3.13] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) 
(#125032)

gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
(cherry picked from commit 1e098dc766ba4f29a63da4f188fb214af7623365)

Co-authored-by: Jan Kaliszewski <[email protected]>

files:
M Doc/library/_thread.rst

diff --git a/Doc/library/_thread.rst b/Doc/library/_thread.rst
index 81f0cac947f602..5fd604c05380ac 100644
--- a/Doc/library/_thread.rst
+++ b/Doc/library/_thread.rst
@@ -213,9 +213,8 @@ In addition to these methods, lock objects can also be used 
via the
 
 .. index:: pair: module; signal
 
-* Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt`
-  exception will be received by an arbitrary thread.  (When the :mod:`signal`
-  module is available, interrupts always go to the main thread.)
+* Interrupts always go to the main thread (the :exc:`KeyboardInterrupt`
+  exception will be received by that thread.)
 
 * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is
   equivalent to calling :func:`_thread.exit`.
@@ -229,7 +228,3 @@ In addition to these methods, lock objects can also be used 
via the
   :keyword:`try` ... :keyword:`finally` clauses or executing object
   destructors.
 
-* When the main thread exits, it does not do any of its usual cleanup (except
-  that :keyword:`try` ... :keyword:`finally` clauses are honored), and the
-  standard I/O files are not flushed.
-

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to