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

Function _disassemble_recursive

Lib/dis.py:841–853  ·  view source on GitHub ↗
(co, *, file=None, depth=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False)

Source from the content-addressed store, hash-verified

839 original_code=co.co_code, arg_resolver=arg_resolver, formatter=formatter)
840
841def _disassemble_recursive(co, *, file=None, depth=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
842 disassemble(co, file=file, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
843 if depth is None or depth > 0:
844 if depth is not None:
845 depth = depth - 1
846 for x in co.co_consts:
847 if hasattr(x, 'co_code'):
848 print(file=file)
849 print("Disassembly of %r:" % (x,), file=file)
850 _disassemble_recursive(
851 x, file=file, depth=depth, show_caches=show_caches,
852 adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions
853 )
854
855
856def _make_labels_map(original_code, exception_entries=()):

Callers 2

disFunction · 0.85
_disassemble_strFunction · 0.85

Calls 1

disassembleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…