MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __repr__

Method __repr__

tools/python-3.11.9-amd64/Lib/threading.py:931–943  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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&#x27;s activity.

Callers

nothing calls this directly

Calls 2

is_aliveMethod · 0.95
is_setMethod · 0.45

Tested by

no test coverage detected