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

Method __init__

IPython/core/splitinput.py:110–119  ·  view source on GitHub ↗
(self, line, continue_prompt=False)

Source from the content-addressed store, hash-verified

108 Everything else on the line.
109 """
110 def __init__(self, line, continue_prompt=False):
111 self.line = line
112 self.continue_prompt = continue_prompt
113 self.pre, self.esc, self.ifun, self.the_rest = split_user_input(line)
114
115 self.pre_char = self.pre.strip()
116 if self.pre_char:
117 self.pre_whitespace = '' # No whitespace allowed before esc chars
118 else:
119 self.pre_whitespace = self.pre
120
121 def ofind(self, ip):
122 """Do a full, attribute-walking lookup of the ifun in the various

Callers

nothing calls this directly

Calls 1

split_user_inputFunction · 0.85

Tested by

no test coverage detected