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

Method __init__

Lib/dis.py:1042–1057  ·  view source on GitHub ↗
(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False)

Source from the content-addressed store, hash-verified

1040 Iterating over this yields the bytecode operations as Instruction instances.
1041 """
1042 def __init__(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
1043 self.codeobj = co = _get_code_object(x)
1044 if first_line is None:
1045 self.first_line = co.co_firstlineno
1046 self._line_offset = 0
1047 else:
1048 self.first_line = first_line
1049 self._line_offset = first_line - co.co_firstlineno
1050 self._linestarts = dict(findlinestarts(co))
1051 self._original_object = x
1052 self.current_offset = current_offset
1053 self.exception_entries = _parse_exception_table(co)
1054 self.show_caches = show_caches
1055 self.adaptive = adaptive
1056 self.show_offsets = show_offsets
1057 self.show_positions = show_positions
1058
1059 def __iter__(self):
1060 co = self.codeobj

Callers

nothing calls this directly

Calls 3

_get_code_objectFunction · 0.85
findlinestartsFunction · 0.85
_parse_exception_tableFunction · 0.85

Tested by

no test coverage detected