Skip to content

Commit f02009f

Browse files
author
nightcityblade
committed
gh-159011: Update dummy thread lifecycle documentation
1 parent 5a22a62 commit f02009f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎Doc/library/threading.rst‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,12 @@ There is the possibility that "dummy thread objects" are created. These are
505505
thread objects corresponding to "alien threads", which are threads of control
506506
started outside the threading module, such as directly from C code. Dummy
507507
thread objects have limited functionality; they are always considered alive and
508-
daemonic, and cannot be :ref:`joined <meth-thread-join>`. They are never deleted,
509-
since it is impossible to detect the termination of alien threads.
508+
daemonic, and cannot be :ref:`joined <meth-thread-join>`. They are removed from
509+
the list of active threads when their alien threads terminate.
510+
511+
.. versionchanged:: 3.13
512+
Dummy thread objects are now removed from the list of active threads when
513+
their alien threads terminate.
510514

511515

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

0 commit comments

Comments
 (0)