Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getlineno
Method
getlineno
Lib/idlelib/idle_test/test_codecontext.py:46–47 ·
view source on GitHub ↗
(self, index)
Source
from the content-addressed store, hash-verified
44
self.label =
''
45
46
def
getlineno(self, index):
47
return
int(float(self.text.index(index)))
48
49
def
update_menu_label(self, **kwargs):
50
self.label = kwargs[
'label'
]
Callers
nothing calls this directly
Calls
1
index
Method · 0.45
Tested by
no test coverage detected