Skip to content

Commit bb110cc

Browse files
mbarkhaumiss-islington
authored andcommitted
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.
1 parent 186f709 commit bb110cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/threading.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ def daemon(self):
11071107
main thread is not a daemon thread and therefore all threads created in
11081108
the main thread default to daemon = False.
11091109
1110-
The entire Python program exits when no alive non-daemon threads are
1111-
left.
1110+
The entire Python program exits when only daemon threads are left.
11121111
11131112
"""
11141113
assert self._initialized, "Thread.__init__() not called"

0 commit comments

Comments
 (0)