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

Method input

Lib/_pyrepl/readline.py:362–373  ·  view source on GitHub ↗
(self, prompt: object = "")

Source from the content-addressed store, hash-verified

360 return self.reader
361
362 def input(self, prompt: object = "") -> str:
363 try:
364 reader = self.get_reader()
365 except _error:
366 assert raw_input is not None
367 return raw_input(prompt)
368 prompt_str = str(prompt)
369 reader.ps1 = prompt_str
370 sys.audit("builtins.input", prompt_str)
371 result = reader.readline(startup_hook=self.startup_hook)
372 sys.audit("builtins.input/result", result)
373 return result
374
375 def multiline_input(self, more_lines: MoreLinesCallable, ps1: str, ps2: str) -> str:
376 """Read an input on possibly multiple lines, asking for more

Calls 3

get_readerMethod · 0.95
strFunction · 0.85
readlineMethod · 0.45