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

Method raw_input

Lib/code.py:329–340  ·  view source on GitHub ↗

Write a prompt and read a line. The returned line does not include the trailing newline. When the user enters the EOF key sequence, EOFError is raised. The base implementation uses the built-in function input(); a subclass may replace this with a different i

(self, prompt="")

Source from the content-addressed store, hash-verified

327 return more
328
329 def raw_input(self, prompt=""):
330 """Write a prompt and read a line.
331
332 The returned line does not include the trailing newline.
333 When the user enters the EOF key sequence, EOFError is raised.
334
335 The base implementation uses the built-in function
336 input(); a subclass may replace this with a different
337 implementation.
338
339 """
340 return input(prompt)
341
342
343class Quitter:

Callers 1

interactMethod · 0.95

Calls 1

inputFunction · 0.85

Tested by

no test coverage detected