]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (GH-125031)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Oct 2024 23:03:30 +0000 (01:03 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Oct 2024 23:03:30 +0000 (23:03 +0000)
gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
(cherry picked from commit 1e098dc766ba4f29a63da4f188fb214af7623365)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Doc/library/_thread.rst

index 35053702e6db2b1b15148ff1b1d407f0f86d48a5..d82f63834dd2d1d46f87b0a0dcec33c8dc932d61 100644 (file)
@@ -210,9 +210,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`.
@@ -226,7 +225,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.
-