MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getline

Method getline

tools/python-3.11.9-amd64/Lib/pydoc.py:2128–2135  ·  view source on GitHub ↗

Read one line, using input() when appropriate.

(self, prompt)

Source from the content-addressed store, hash-verified

2126 self.help(request)
2127
2128 def getline(self, prompt):
2129 """Read one line, using input() when appropriate."""
2130 if self.input is sys.stdin:
2131 return input(prompt)
2132 else:
2133 self.output.write(prompt)
2134 self.output.flush()
2135 return self.input.readline()
2136
2137 def help(self, request, is_cli=False):
2138 if isinstance(request, str):

Callers 1

interactMethod · 0.95

Calls 4

inputFunction · 0.85
writeMethod · 0.45
flushMethod · 0.45
readlineMethod · 0.45

Tested by

no test coverage detected