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

Method setDaemon

Lib/threading.py:1217–1226  ·  view source on GitHub ↗

Set whether this thread is a daemon. This method is deprecated, use the .daemon property instead.

(self, daemonic)

Source from the content-addressed store, hash-verified

1215 return self.daemon
1216
1217 def setDaemon(self, daemonic):
1218 """Set whether this thread is a daemon.
1219
1220 This method is deprecated, use the .daemon property instead.
1221
1222 """
1223 import warnings
1224 warnings.warn('setDaemon() is deprecated, set the daemon attribute instead',
1225 DeprecationWarning, stacklevel=2)
1226 self.daemon = daemonic
1227
1228 def getName(self):
1229 """Return a string used for identification purposes only.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1