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

Method __iter__

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

Source from the content-addressed store, hash-verified

1065 self.show_positions = show_positions
1066
1067 def __iter__(self):
1068 co = self.codeobj
1069 original_code = co.co_code
1070 labels_map = _make_labels_map(original_code, self.exception_entries)
1071 arg_resolver = ArgResolver(co_consts=co.co_consts,
1072 names=co.co_names,
1073 varname_from_oparg=co._varname_from_oparg,
1074 labels_map=labels_map)
1075 return _get_instructions_bytes(_get_code_array(co, self.adaptive),
1076 linestarts=self._linestarts,
1077 line_offset=self._line_offset,
1078 co_positions=co.co_positions(),
1079 original_code=original_code,
1080 arg_resolver=arg_resolver)
1081
1082 def __repr__(self):
1083 return "{}({!r})".format(self.__class__.__name__,

Callers

nothing calls this directly

Calls 4

_make_labels_mapFunction · 0.85
ArgResolverClass · 0.85
_get_instructions_bytesFunction · 0.85
_get_code_arrayFunction · 0.85

Tested by

no test coverage detected