MCPcopy Index your code
hub / github.com/python/cpython / get_current_history_length

Method get_current_history_length

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

Source from the content-addressed store, hash-verified

424 self.saved_history_length = length
425
426 def get_current_history_length(self) -> int:
427 return len(self.get_reader().history)
428
429 def read_history_file(self, filename: str = gethistoryfile()) -> None:
430 # multiline extension (really a hack) for the end of lines that

Callers 7

read_history_fileMethod · 0.95
append_history_fileMethod · 0.95
register_readlineFunction · 0.80
input_auto_indentMethod · 0.80
testHistoryUpdatesMethod · 0.80

Calls 1

get_readerMethod · 0.95

Tested by 3

testHistoryUpdatesMethod · 0.64