MCPcopy Index your code
hub / github.com/python/cpython / daemon

Method daemon

Lib/threading.py:1182–1194  ·  view source on GitHub ↗

A boolean value indicating whether this thread is a daemon thread. This must be set before start() is called, otherwise RuntimeError is raised. Its initial value is inherited from the creating thread; the main thread is not a daemon thread and therefore all threads created i

(self)

Source from the content-addressed store, hash-verified

1180
1181 @property
1182 def daemon(self):
1183 """A boolean value indicating whether this thread is a daemon thread.
1184
1185 This must be set before start() is called, otherwise RuntimeError is
1186 raised. Its initial value is inherited from the creating thread; the
1187 main thread is not a daemon thread and therefore all threads created in
1188 the main thread default to daemon = False.
1189
1190 The entire Python program exits when only daemon threads are left.
1191
1192 """
1193 assert self._initialized, "Thread.__init__() not called"
1194 return self._daemonic
1195
1196 @daemon.setter
1197 def daemon(self, daemonic):

Callers

nothing calls this directly

Calls 1

is_setMethod · 0.45

Tested by

no test coverage detected