(self)
| 475 | self._value = value |
| 476 | |
| 477 | def __repr__(self): |
| 478 | cls = self.__class__ |
| 479 | return (f"<{cls.__module__}.{cls.__qualname__} at {id(self):#x}:" |
| 480 | f" value={self._value}>") |
| 481 | |
| 482 | def acquire(self, blocking=True, timeout=None): |
| 483 | """Acquire a semaphore, decrementing the internal counter by one. |