Commit 03464483 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

Improve threading.daemon docstring (GH-14278)


Rephrase and clarify that "the entire Python program exits when only daemon threads are left". This matches the documentation at https://docs.python.org/3/library/threading.htmlGH-thread-objects.
(cherry picked from commit bb110cc2)
Co-authored-by: default avatarmbarkhau <mbarkhau@gmail.com>
parent adcdb1e4
......@@ -1005,8 +1005,7 @@ class Thread(_Verbose):
main thread is not a daemon thread and therefore all threads created in
the main thread default to daemon = False.
The entire Python program exits when no alive non-daemon threads are
left.
The entire Python program exits when only daemon threads are left.
"""
assert self.__initialized, "Thread.__init__() not called"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment