(self)
| 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. |