MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/dis.py:698–711  ·  view source on GitHub ↗
(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False)

Source from the content-addressed store, hash-verified

696 Iterating over this yields the bytecode operations as Instruction instances.
697 """
698 def __init__(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False):
699 self.codeobj = co = _get_code_object(x)
700 if first_line is None:
701 self.first_line = co.co_firstlineno
702 self._line_offset = 0
703 else:
704 self.first_line = first_line
705 self._line_offset = first_line - co.co_firstlineno
706 self._linestarts = dict(findlinestarts(co))
707 self._original_object = x
708 self.current_offset = current_offset
709 self.exception_entries = _parse_exception_table(co)
710 self.show_caches = show_caches
711 self.adaptive = adaptive
712
713 def __iter__(self):
714 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