]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
authorJan Kaliszewski <zuo@kaliszewski.net>
Sun, 6 Oct 2024 22:57:03 +0000 (00:57 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Oct 2024 22:57:03 +0000 (15:57 -0700)
Doc/library/_thread.rst

index 81f0cac947f60218e3e39b8571b0a5d32ba7a0e8..5fd604c05380ac58486bffe32387b650a1fccbe0 100644 (file)
@@ -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.
-