Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_methods
Method · 0.45
get_module_completions
Method · 0.45
Calls
1
join
Method · 0.45
Tested by
1
test_all_methods
Method · 0.36