Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ get_history_length
Method
get_history_length
Lib/_pyrepl/readline.py:420–421 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
418
return
line
419
420
def
get_history_length(self) -> int:
421
return
self.saved_history_length
422
423
def
set_history_length(self, length: int) -> None:
424
self.saved_history_length = length
Callers
3
append_history_file
Method · 0.95
test_write_read_limited_history
Method · 0.80
test_write_read_limited_history
Method · 0.80
Calls
no outgoing calls
Tested by
2
test_write_read_limited_history
Method · 0.64
test_write_read_limited_history
Method · 0.64