MCPcopy Index your code
hub / github.com/RustPython/RustPython / __repr__

Method __repr__

Lib/threading.py:161–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 self._count = 0
160
161 def __repr__(self):
162 owner = self._owner
163 try:
164 owner = _active[owner].name
165 except KeyError:
166 pass
167 return "<%s %s.%s object owner=%r count=%d at %s>" % (
168 "locked" if self.locked() else "unlocked",
169 self.__class__.__module__,
170 self.__class__.__qualname__,
171 owner,
172 self._count,
173 hex(id(self))
174 )
175
176 def _at_fork_reinit(self):
177 self._block._at_fork_reinit()

Callers

nothing calls this directly

Calls 3

lockedMethod · 0.95
hexFunction · 0.85
idFunction · 0.85

Tested by

no test coverage detected