Visitar URL original
gh-159011: Update dummy thread lifecycle documentation by nightcityblade · Pull Request #159032 · python/cpython · GitHub
Skip to content
Open
Changes from all 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: 6 additions & 2 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,12 @@ There is the possibility that "dummy thread objects" are created. These are
thread objects corresponding to "alien threads", which are threads of control
started outside the threading module, such as directly from C code. Dummy
thread objects have limited functionality; they are always considered alive and
daemonic, and cannot be :ref:`joined <meth-thread-join>`. They are never deleted,
since it is impossible to detect the termination of alien threads.
daemonic, and cannot be :ref:`joined <meth-thread-join>`. They are removed from
the list of active threads when their alien threads terminate.

.. versionchanged:: 3.13
Dummy thread objects are now removed from the list of active threads when
their alien threads terminate.


.. class:: Thread(group=None, target=None, name=None, args=(), kwargs={}, *, \
Expand Down
Loading