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

Method __repr__

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

Source from the content-addressed store, hash-verified

116 self._count = 0
117
118 def __repr__(self):
119 owner = self._owner
120 try:
121 owner = _active[owner].name
122 except KeyError:
123 pass
124 return "<%s %s.%s object owner=%r count=%d at %s>" % (
125 "locked" if self._block.locked() else "unlocked",
126 self.__class__.__module__,
127 self.__class__.__qualname__,
128 owner,
129 self._count,
130 hex(id(self))
131 )
132
133 def _at_fork_reinit(self):
134 self._block._at_fork_reinit()

Callers

nothing calls this directly

Calls 2

idFunction · 0.50
lockedMethod · 0.45

Tested by

no test coverage detected