summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authormbarkhau <mbarkhau@gmail.com>2019-06-22 12:51:06 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-22 12:51:06 (GMT)
commitbb110cc2ed81447fb48805f31146cf31323a8fc3 (patch)
tree1739586a35a5b86a5d094caf7bc4a9d52257227c /Lib/threading.py
parent186f70905d07b42a9cbf0a29e448f30baf2b53cb (diff)
downloadcpython-bb110cc2ed81447fb48805f31146cf31323a8fc3.zip
cpython-bb110cc2ed81447fb48805f31146cf31323a8fc3.tar.gz
cpython-bb110cc2ed81447fb48805f31146cf31323a8fc3.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.html#thread-objects.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 01a15a6..cec9cdb 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -1107,8 +1107,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"