MCPcopy Index your code
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/core/splitinput.py:114–125  ·  view source on GitHub ↗
(self, line: str, continue_prompt: bool = False)

Source from the content-addressed store, hash-verified

112 pre_whitespace: str
113
114 def __init__(self, line: str, continue_prompt: bool = False) -> None:
115 assert isinstance(line, str)
116 self.line = line
117 self.continue_prompt = continue_prompt
118 self.pre, self.esc, self.ifun, self.raw_the_rest = split_user_input(line)
119 self.the_rest = self.raw_the_rest.lstrip()
120
121 self.pre_char = self.pre.strip()
122 if self.pre_char:
123 self.pre_whitespace = "" # No whitespace allowed before esc chars
124 else:
125 self.pre_whitespace = self.pre
126
127 def ofind(self, ip) -> OInfo:
128 """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