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 creat
(self)
| 1205 | |
| 1206 | @property |
| 1207 | def daemon(self): |
| 1208 | """A boolean value indicating whether this thread is a daemon thread. |
| 1209 | |
| 1210 | This must be set before start() is called, otherwise RuntimeError is |
| 1211 | raised. Its initial value is inherited from the creating thread; the |
| 1212 | main thread is not a daemon thread and therefore all threads created in |
| 1213 | the main thread default to daemon = False. |
| 1214 | |
| 1215 | The entire Python program exits when only daemon threads are left. |
| 1216 | |
| 1217 | """ |
| 1218 | assert self._initialized, "Thread.__init__() not called" |
| 1219 | return self._daemonic |
| 1220 | |
| 1221 | @daemon.setter |
| 1222 | def daemon(self, daemonic): |