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

Method getName

Lib/threading.py:1235–1244  ·  view source on GitHub ↗

Return a string used for identification purposes only. This method is deprecated, use the name attribute instead.

(self)

Source from the content-addressed store, hash-verified

1233 self.daemon = daemonic
1234
1235 def getName(self):
1236 """Return a string used for identification purposes only.
1237
1238 This method is deprecated, use the name attribute instead.
1239
1240 """
1241 import warnings
1242 warnings.warn('getName() is deprecated, get the name attribute instead',
1243 DeprecationWarning, stacklevel=2)
1244 return self.name
1245
1246 def setName(self, name):
1247 """Set the name string for this thread.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1