(self)
| 169 | self._value = False |
| 170 | |
| 171 | def __repr__(self): |
| 172 | res = super().__repr__() |
| 173 | extra = 'set' if self._value else 'unset' |
| 174 | if self._waiters: |
| 175 | extra = f'{extra}, waiters:{len(self._waiters)}' |
| 176 | return f'<{res[1:-1]} [{extra}]>' |
| 177 | |
| 178 | def is_set(self): |
| 179 | """Return True if and only if the internal flag is true.""" |