From e24dbe79ba4e4b497bac4430255e253932f6e99e Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sun, 23 Jun 2019 12:05:10 -0700 Subject: [PATCH] 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 bb110cc2ed81447fb48805f31146cf31323a8fc3) Co-authored-by: mbarkhau --- Lib/threading.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/threading.py b/Lib/threading.py index 0fb3bdd55cd7..b597336a1506 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -1122,8 +1122,7 @@ class Thread: 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" -- 2.47.3