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)
| 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): |