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

Function _parse_exception_table

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

Source from the content-addressed store, hash-verified

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

Callers 2

disassembleFunction · 0.85
__init__Method · 0.85

Calls 3

_parse_varintFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…