(self, index: int)
| 489 | return None # like readline.c |
| 490 | |
| 491 | def remove_history_item(self, index: int) -> None: |
| 492 | history = self.get_reader().history |
| 493 | if 0 <= index < len(history): |
| 494 | del history[index] |
| 495 | else: |
| 496 | raise ValueError("No history item at position %d" % index) |
| 497 | # like readline.c |
| 498 | |
| 499 | def replace_history_item(self, index: int, line: str) -> None: |
| 500 | history = self.get_reader().history |