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

Method __repr__

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

Source from the content-addressed store, hash-verified

239 self._waiters = collections.deque()
240
241 def __repr__(self):
242 res = super().__repr__()
243 extra = 'locked' if self.locked() else 'unlocked'
244 if self._waiters:
245 extra = f'{extra}, waiters:{len(self._waiters)}'
246 return f'<{res[1:-1]} [{extra}]>'
247
248 async def wait(self):
249 """Wait until notified.

Callers

nothing calls this directly

Calls 3

superClass · 0.85
__repr__Method · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected