MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / iter_instructions

Function iter_instructions

_pydevd_bundle/pydevd_collect_bytecode_info.py:85–95  ·  view source on GitHub ↗
(co)

Source from the content-addressed store, hash-verified

83
84
85def iter_instructions(co):
86 iter_in = dis.Bytecode(co)
87 iter_in = list(iter_in)
88
89 bytecode_to_instruction = {}
90 for instruction in iter_in:
91 bytecode_to_instruction[instruction.offset] = instruction
92
93 if iter_in:
94 for instruction in iter_in:
95 yield instruction
96
97
98def collect_return_info(co, use_func_first_line=False):

Callers 5

_collect_load_namesFunction · 0.90
__init__Method · 0.90
collect_return_infoFunction · 0.85
collect_try_except_infoFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected