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

Method get_reader

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

Source from the content-addressed store, hash-verified

354 self.f_out = os.dup(1)
355
356 def get_reader(self) -> ReadlineAlikeReader:
357 if self.reader is None:
358 console = Console(self.f_in, self.f_out, encoding=ENCODING)
359 self.reader = ReadlineAlikeReader(console=console, config=self.config)
360 return self.reader
361
362 def input(self, prompt: object = "") -> str:
363 try:

Callers 13

inputMethod · 0.95
multiline_inputMethod · 0.95
read_history_fileMethod · 0.95
write_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
_get_idxsMethod · 0.95

Calls 2

ConsoleClass · 0.85
ReadlineAlikeReaderClass · 0.85

Tested by

no test coverage detected