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

Method get_reader

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

Source from the content-addressed store, hash-verified

361 self.f_out = os.dup(1)
362
363 def get_reader(self) -> ReadlineAlikeReader:
364 if self.reader is None:
365 console = Console(self.f_in, self.f_out, encoding=ENCODING)
366 self.reader = ReadlineAlikeReader(console=console, config=self.config)
367 return self.reader
368
369 def input(self, prompt: object = "") -> str:
370 try:

Callers 14

inputMethod · 0.95
multiline_inputMethod · 0.95
read_history_fileMethod · 0.95
write_history_fileMethod · 0.95
append_history_fileMethod · 0.95
clear_historyMethod · 0.95
get_history_itemMethod · 0.95
remove_history_itemMethod · 0.95
replace_history_itemMethod · 0.95
add_historyMethod · 0.95
get_line_bufferMethod · 0.95

Calls 2

ConsoleClass · 0.85
ReadlineAlikeReaderClass · 0.85

Tested by

no test coverage detected