Skip to content

Commit 36f9bbb

Browse files
miss-islingtonzuo
andauthored
[3.12] gh-125025: _thread docs: fix/update the *caveats* list (GH-125026) (GH-125031)
gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (cherry picked from commit 1e098dc) Co-authored-by: Jan Kaliszewski <[email protected]>
1 parent 73d7393 commit 36f9bbb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Doc/library/_thread.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ In addition to these methods, lock objects can also be used via the
210210

211211
.. index:: pair: module; signal
212212

213-
* Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt`
214-
exception will be received by an arbitrary thread. (When the :mod:`signal`
215-
module is available, interrupts always go to the main thread.)
213+
* Interrupts always go to the main thread (the :exc:`KeyboardInterrupt`
214+
exception will be received by that thread.)
216215

217216
* Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is
218217
equivalent to calling :func:`_thread.exit`.
@@ -226,7 +225,3 @@ In addition to these methods, lock objects can also be used via the
226225
:keyword:`try` ... :keyword:`finally` clauses or executing object
227226
destructors.
228227

229-
* When the main thread exits, it does not do any of its usual cleanup (except
230-
that :keyword:`try` ... :keyword:`finally` clauses are honored), and the
231-
standard I/O files are not flushed.
232-

0 commit comments

Comments
 (0)