Reset the state of the instance to when it was constructed
(self)
| 2498 | self.reset() |
| 2499 | |
| 2500 | def reset(self): |
| 2501 | """ |
| 2502 | Reset the state of the instance to when it was constructed |
| 2503 | """ |
| 2504 | self.operations = [] |
| 2505 | self._last_overflow = "WRAP" |
| 2506 | self.overflow(self._default_overflow or self._last_overflow) |
| 2507 | |
| 2508 | def overflow(self, overflow: str): |
| 2509 | """ |