MCPcopy Index your code
hub / github.com/RustPython/RustPython / setDaemon

Method setDaemon

Lib/threading.py:1224–1233  ·  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

1222 return self.daemon
1223
1224 def setDaemon(self, daemonic):
1225 """Set whether this thread is a daemon.
1226
1227 This method is deprecated, use the .daemon property instead.
1228
1229 """
1230 import warnings
1231 warnings.warn('setDaemon() is deprecated, set the daemon attribute instead',
1232 DeprecationWarning, stacklevel=2)
1233 self.daemon = daemonic
1234
1235 def getName(self):
1236 """Return a string used for identification purposes only.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1