MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_code_position_from_tb

Function _get_code_position_from_tb

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

Source from the content-addressed store, hash-verified

1555 self.index, self.positions))
1556
1557def _get_code_position_from_tb(tb):
1558 code, instruction_index = tb.tb_frame.f_code, tb.tb_lasti
1559 return _get_code_position(code, instruction_index)
1560
1561def _get_code_position(code, instruction_index):
1562 if instruction_index < 0:

Callers 1

getframeinfoFunction · 0.85

Calls 1

_get_code_positionFunction · 0.70

Tested by

no test coverage detected