MCPcopy 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
38class LineNumbersTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected