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

Function get_line_col

Lib/idlelib/searchengine.py:226–229  ·  view source on GitHub ↗

Return (line, col) tuple of ints from 'line.col' string.

(index)

Source from the content-addressed store, hash-verified

224 return first, last
225
226def get_line_col(index):
227 '''Return (line, col) tuple of ints from 'line.col' string.'''
228 line, col = map(int, index.split(".")) # Fails on invalid index
229 return line, col
230
231
232if __name__ == "__main__":

Callers 1

search_textMethod · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…