Skip to content

Commit f02cdf7

Browse files
authored
Change doc desc
1 parent 0c2b795 commit f02cdf7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/threading.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,10 @@ since it is impossible to detect the termination of alien threads.
365365

366366
.. note::
367367

368-
Threads are non-daemon by default, meaning they block the program from
369-
exiting until they complete. By setting *daemon* to ``True``, threads become
370-
daemon and will be forcibly terminated when the main program exits. Use
371-
an explicit call to ``.join()`` on a daemon thread to block
372-
the main program until the thread completes.
368+
In Python, daemon threads do not prevent the program from exiting; they
369+
are forcibly terminated when the main program terminates. A thread can be
370+
designated as a daemon thread by setting *daemon* to ``True``, and daemon
371+
threads do not require an explicit ``.join()`` call.
373372

374373
.. versionchanged:: 3.3
375374
Added the *daemon* parameter.

0 commit comments

Comments
 (0)