MCPcopy Create free account
hub / github.com/ipython/ipython / raw_in

Function raw_in

IPython/core/tests/test_inputsplitter.py:61–65  ·  view source on GitHub ↗
(prompt)

Source from the content-addressed store, hash-verified

59 """Return a function that acts like raw_input but feeds the input list."""
60 ilines = iter(lines)
61 def raw_in(prompt):
62 try:
63 return next(ilines)
64 except StopIteration:
65 return ''
66 return raw_in
67
68#-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected