Return a string used for identification purposes only. This method is deprecated, use the name attribute instead.
(self)
| 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. |