Skip to content
Draft
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ since it is impossible to detect the termination of alien threads.
base class constructor (``Thread.__init__()``) before doing anything else to
the thread.

.. note::

Threads are non-daemon by default, meaning they block the program from
exiting until they complete. By setting *daemon* to ``True``, thread becomes
daemon and will be forcibly terminated when the main program exits. Use
an explicit call to ``.join()`` on the daemon thread, which will block
the main program until the thread completes.

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

Expand Down
Loading