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

Method __iter__

Lib/dis.py:1059–1072  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1057 self.show_positions = show_positions
1058
1059 def __iter__(self):
1060 co = self.codeobj
1061 original_code = co.co_code
1062 labels_map = _make_labels_map(original_code, self.exception_entries)
1063 arg_resolver = ArgResolver(co_consts=co.co_consts,
1064 names=co.co_names,
1065 varname_from_oparg=co._varname_from_oparg,
1066 labels_map=labels_map)
1067 return _get_instructions_bytes(_get_code_array(co, self.adaptive),
1068 linestarts=self._linestarts,
1069 line_offset=self._line_offset,
1070 co_positions=co.co_positions(),
1071 original_code=original_code,
1072 arg_resolver=arg_resolver)
1073
1074 def __repr__(self):
1075 return "{}({!r})".format(self.__class__.__name__,

Callers

nothing calls this directly

Calls 5

_make_labels_mapFunction · 0.85
ArgResolverClass · 0.85
_get_instructions_bytesFunction · 0.85
_get_code_arrayFunction · 0.85
co_positionsMethod · 0.80

Tested by

no test coverage detected