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

Method isDaemon

Lib/threading.py:1206–1215  ·  view source on GitHub ↗

Return whether this thread is a daemon. This method is deprecated, use the daemon attribute instead.

(self)

Source from the content-addressed store, hash-verified

1204 self._daemonic = daemonic
1205
1206 def isDaemon(self):
1207 """Return whether this thread is a daemon.
1208
1209 This method is deprecated, use the daemon attribute instead.
1210
1211 """
1212 import warnings
1213 warnings.warn('isDaemon() is deprecated, get the daemon attribute instead',
1214 DeprecationWarning, stacklevel=2)
1215 return self.daemon
1216
1217 def setDaemon(self, daemonic):
1218 """Set whether this thread is a daemon.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1