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

Method getName

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

1226 self.daemon = daemonic
1227
1228 def getName(self):
1229 """Return a string used for identification purposes only.
1230
1231 This method is deprecated, use the name attribute instead.
1232
1233 """
1234 import warnings
1235 warnings.warn('getName() is deprecated, get the name attribute instead',
1236 DeprecationWarning, stacklevel=2)
1237 return self.name
1238
1239 def setName(self, name):
1240 """Set the name string for this thread.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1