You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: threading says dummy thread objects are never deleted, outdated since 3.13 #159011
Doc/library/threading.rst says about dummy thread objects:
They are never deleted, since it is impossible to detect the termination of alien threads.
Since 3.13, Lib/threading.py does detect it: _DeleteDummyThreadOnDel is stored
in a thread-local (_thread_local_info). When the alien thread finishes, the
object is collected and removes the dummy thread from threading._active.
Suggested fix: drop "They are never deleted…" and say that since 3.13 a dummy
thread object is removed once the alien thread finishes. Add a versionchanged:: 3.13 note.
Activity
nightcityblade commentedon Oct 8, 2026
Hi, I would like to work on this documentation update. I will submit a focused PR shortly.
pythongh-159011: Update dummy thread lifecycle documentation