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

Method getline

Lib/pydoc.py:2092–2099  ·  view source on GitHub ↗

Read one line, using input() when appropriate.

(self, prompt)

Source from the content-addressed store, hash-verified

2090 self.help(request)
2091
2092 def getline(self, prompt):
2093 """Read one line, using input() when appropriate."""
2094 if self.input is sys.stdin:
2095 return input(prompt)
2096 else:
2097 self.output.write(prompt)
2098 self.output.flush()
2099 return self.input.readline()
2100
2101 def help(self, request, is_cli=False):
2102 if isinstance(request, str):

Callers 1

interactMethod · 0.95

Calls 4

inputFunction · 0.70
writeMethod · 0.45
flushMethod · 0.45
readlineMethod · 0.45

Tested by

no test coverage detected