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

Method __repr__

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

Source from the content-addressed store, hash-verified

558 self._initial_value = value
559
560 def __repr__(self):
561 cls = self.__class__
562 return (f"<{cls.__module__}.{cls.__qualname__} at {id(self):#x}:"
563 f" value={self._value}/{self._initial_value}>")
564
565 def release(self, n=1):
566 """Release a semaphore, incrementing the internal counter by one or more.

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected