Skip to content

Commit 626b4a8

Browse files
miss-islingtonzuo
andauthored
[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 1e098dc) Co-authored-by: Jan Kaliszewski <[email protected]>
1 parent d7e4c79 commit 626b4a8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Doc/library/_thread.rst

+2-7
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,8 @@ In addition to these methods, lock objects can also be used via the
213213

214214
.. index:: pair: module; signal
215215

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

220219
* Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is
221220
equivalent to calling :func:`_thread.exit`.
@@ -229,7 +228,3 @@ In addition to these methods, lock objects can also be used via the
229228
:keyword:`try` ... :keyword:`finally` clauses or executing object
230229
destructors.
231230

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

0 commit comments

Comments
 (0)