| 929 | self._tstate_lock = None |
| 930 | |
| 931 | def __repr__(self): |
| 932 | assert self._initialized, "Thread.__init__() was not called" |
| 933 | status = "initial" |
| 934 | if self._started.is_set(): |
| 935 | status = "started" |
| 936 | self.is_alive() # easy way to get ._is_stopped set when appropriate |
| 937 | if self._is_stopped: |
| 938 | status = "stopped" |
| 939 | if self._daemonic: |
| 940 | status += " daemon" |
| 941 | if self._ident is not None: |
| 942 | status += " %s" % self._ident |
| 943 | return "<%s(%s, %s)>" % (self.__class__.__name__, self._name, status) |
| 944 | |
| 945 | def start(self): |
| 946 | """Start the thread's activity. |