MCPcopy Create free account
hub / github.com/python/cpython / __repr__

Method __repr__

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

Source from the content-addressed store, hash-verified

468 self._value = value
469
470 def __repr__(self):
471 cls = self.__class__
472 return (f"<{cls.__module__}.{cls.__qualname__} at {id(self):#x}:"
473 f" value={self._value}>")
474
475 def acquire(self, blocking=True, timeout=None):
476 """Acquire a semaphore, decrementing the internal counter by one.

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected