diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-23 19:06:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-23 19:06:21 (GMT) |
commit | ea380f6946633cb6e5b1de61cf92e01c7e057ee8 (patch) | |
tree | 67b1759c81304debe6c1c9c26d40c6e35918dcb8 | |
parent | 175b2e974586152c1d4cdea589b971d7ecad4d30 (diff) | |
download | cpython-ea380f6946633cb6e5b1de61cf92e01c7e057ee8.zip cpython-ea380f6946633cb6e5b1de61cf92e01c7e057ee8.tar.gz cpython-ea380f6946633cb6e5b1de61cf92e01c7e057ee8.tar.bz2 |
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 <mbarkhau@gmail.com>
-rw-r--r-- | Lib/threading.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 7c6d404..2f6ac70 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -1101,8 +1101,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" |