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

Method add_history

Lib/_pyrepl/readline.py:486–487  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

484 # like readline.c
485
486 def add_history(self, line: str) -> None:
487 self.get_reader().history.append(self._histline(line))
488
489 def set_startup_hook(self, function: Callback | None = None) -> None:
490 self.startup_hook = function

Callers

nothing calls this directly

Calls 3

get_readerMethod · 0.95
_histlineMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected