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

Function _parse_exception_table

Lib/dis.py:733–747  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

731 return val
732
733def _parse_exception_table(code):
734 iterator = iter(code.co_exceptiontable)
735 entries = []
736 try:
737 while True:
738 start = _parse_varint(iterator)*2
739 length = _parse_varint(iterator)*2
740 end = start + length
741 target = _parse_varint(iterator)*2
742 dl = _parse_varint(iterator)
743 depth = dl >> 1
744 lasti = bool(dl&1)
745 entries.append(_ExceptionTableEntry(start, end, target, depth, lasti))
746 except StopIteration:
747 return entries
748
749def _is_backward_jump(op):
750 return opname[op] in ('JUMP_BACKWARD',

Callers 2

disassembleFunction · 0.85
__init__Method · 0.85

Calls 4

iterFunction · 0.85
_parse_varintFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected