MCPcopy Index your code
hub / github.com/python/cpython / __repr__

Method __repr__

Lib/asyncio/locks.py:171–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 self._value = False
170
171 def __repr__(self):
172 res = super().__repr__()
173 extra = 'set' if self._value else 'unset'
174 if self._waiters:
175 extra = f'{extra}, waiters:{len(self._waiters)}'
176 return f'<{res[1:-1]} [{extra}]>'
177
178 def is_set(self):
179 """Return True if and only if the internal flag is true."""

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__repr__Method · 0.45

Tested by

no test coverage detected