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

Function _get_code_position_from_tb

Lib/inspect.py:1581–1583  ·  view source on GitHub ↗
(tb)

Source from the content-addressed store, hash-verified

1579 self.index, self.positions))
1580
1581def _get_code_position_from_tb(tb):
1582 code, instruction_index = tb.tb_frame.f_code, tb.tb_lasti
1583 return _get_code_position(code, instruction_index)
1584
1585def _get_code_position(code, instruction_index):
1586 if instruction_index < 0:

Callers 1

getframeinfoFunction · 0.85

Calls 1

_get_code_positionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…