Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ getlineno
Method
getlineno
Lib/idlelib/idle_test/test_sidebar.py:34–35 ·
view source on GitHub ↗
(self, index)
Source
from the content-addressed store, hash-verified
32
pass
33
34
def
getlineno(self, index):
35
return
int(float(self.text.index(index)))
36
37
38
class
LineNumbersTest(unittest.TestCase):
Callers
nothing calls this directly
Calls
1
index
Method · 0.45
Tested by
no test coverage detected