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

Function nth_line

Lib/test/test_monitoring.py:45–46  ·  view source on GitHub ↗
(func, offset)

Source from the content-addressed store, hash-verified

43TEST_TOOL3 = 4
44
45def nth_line(func, offset):
46 return func.__code__.co_firstlineno + offset
47
48class MonitoringBasicTest(unittest.TestCase):
49

Callers 3

test_lines_singleMethod · 0.85
test_lines_loopMethod · 0.85
test_lines_twoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…