MCPcopy Index your code
hub / github.com/bpython/bpython / cur_line

Method cur_line

bpython/repl.py:265–268  ·  view source on GitHub ↗

Returns a cursor offset and line with the current substitution made

(self)

Source from the content-addressed store, hash-verified

263 return self.matches[self.index]
264
265 def cur_line(self) -> tuple[int, str]:
266 """Returns a cursor offset and line with the current substitution
267 made"""
268 return self.substitute(self.current())
269
270 def substitute(self, match: str) -> tuple[int, str]:
271 """Returns a cursor offset and line with match substituted in"""

Callers 3

tabMethod · 0.80
test_cur_lineMethod · 0.80
on_tabMethod · 0.80

Calls 2

substituteMethod · 0.95
currentMethod · 0.95

Tested by 1

test_cur_lineMethod · 0.64