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

Method index

Lib/idlelib/idle_test/mock_tk.py:115–117  ·  view source on GitHub ↗

Return string version of index decoded according to current text.

(self, index)

Source from the content-addressed store, hash-verified

113 self.data = ['', '\n']
114
115 def index(self, index):
116 "Return string version of index decoded according to current text."
117 return "%s.%s" % self._decode(index, endflag=1)
118
119 def _decode(self, index, endflag=0):
120 """Return a (line, char) tuple of int indexes into self.data.

Callers 15

set_breakpointMethod · 0.45
set_breakpoint_eventMethod · 0.45
enter_callbackMethod · 0.45
runitMethod · 0.45
show_windowMethod · 0.45
keyrelease_eventMethod · 0.45
jumptolineMethod · 0.45
goto_source_lineMethod · 0.45
show_stack_frameMethod · 0.45
get_positionMethod · 0.45

Calls 1

_decodeMethod · 0.95

Tested by 12

runcaseMethod · 0.36
test_expandMethod · 0.36
checklinesMethod · 0.36
getlinenoMethod · 0.36
getlinenoMethod · 0.36
test_scrollMethod · 0.36
test_mousewheelMethod · 0.36