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

Method get_current_history_length

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

Source from the content-addressed store, hash-verified

417 self.saved_history_length = length
418
419 def get_current_history_length(self) -> int:
420 return len(self.get_reader().history)
421
422 def read_history_file(self, filename: str = gethistoryfile()) -> None:
423 # multiline extension (really a hack) for the end of lines that

Callers 1

register_readlineFunction · 0.80

Calls 2

get_readerMethod · 0.95
lenFunction · 0.85

Tested by

no test coverage detected