MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear_history

Method clear_history

Lib/_pyrepl/readline.py:460–461  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458 f.write(entry + "\n")
459
460 def clear_history(self) -> None:
461 del self.get_reader().history[:]
462
463 def get_history_item(self, index: int) -> str | None:
464 history = self.get_reader().history

Callers

nothing calls this directly

Calls 1

get_readerMethod · 0.95

Tested by

no test coverage detected