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

Method setName

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

1237 return self.name
1238
1239 def setName(self, name):
1240 """Set the name string for this thread.
1241
1242 This method is deprecated, use the name attribute instead.
1243
1244 """
1245 import warnings
1246 warnings.warn('setName() is deprecated, set the name attribute instead',
1247 DeprecationWarning, stacklevel=2)
1248 self.name = name
1249
1250
1251try:

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1