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

Method setName

Lib/threading.py:1246–1255  ·  view source on GitHub ↗

Set the name string for this thread. This method is deprecated, use the name attribute instead.

(self, name)

Source from the content-addressed store, hash-verified

1244 return self.name
1245
1246 def setName(self, name):
1247 """Set the name string for this thread.
1248
1249 This method is deprecated, use the name attribute instead.
1250
1251 """
1252 import warnings
1253 warnings.warn('setName() is deprecated, set the name attribute instead',
1254 DeprecationWarning, stacklevel=2)
1255 self.name = name
1256
1257
1258try:

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1