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

Method split_line

IPython/core/completer.py:950–954  ·  view source on GitHub ↗

Split a line of text with a cursor at the given position.

(self, line, cursor_pos=None)

Source from the content-addressed store, hash-verified

948 self._delim_expr = expr
949
950 def split_line(self, line, cursor_pos=None):
951 """Split a line of text with a cursor at the given position.
952 """
953 cut_line = line if cursor_pos is None else line[:cursor_pos]
954 return self._delim_re.split(cut_line)[-1]
955
956
957class Completer(Configurable):

Callers 2

_completeMethod · 0.80
check_line_splitFunction · 0.80

Calls

no outgoing calls

Tested by 1

check_line_splitFunction · 0.64