MCPcopy Index your code
hub / github.com/python/cpython / get_line

Method get_line

Lib/_pyrepl/completing_reader.py:322–324  ·  view source on GitHub ↗

Return the current line until the cursor position.

(self)

Source from the content-addressed store, hash-verified

320 return [], None
321
322 def get_line(self) -> str:
323 """Return the current line until the cursor position."""
324 return ''.join(self.buffer[:self.pos])

Callers 2

test_all_methodsMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by 1

test_all_methodsMethod · 0.36