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

Method __repr__

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

Source from the content-addressed store, hash-verified

703 self._count = 0
704
705 def __repr__(self):
706 cls = self.__class__
707 if self.broken:
708 return f"<{cls.__module__}.{cls.__qualname__} at {id(self):#x}: broken>"
709 return (f"<{cls.__module__}.{cls.__qualname__} at {id(self):#x}:"
710 f" waiters={self.n_waiting}/{self.parties}>")
711
712 def wait(self, timeout=None):
713 """Wait for the barrier.

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected