MCPcopy
hub / github.com/rocky/python-uncompyle6 / deparse_code

Function deparse_code

uncompyle6/semantics/fragments.py:2024–2046  ·  view source on GitHub ↗
(
    version,
    co,
    out=StringIO(),
    showasm=False,
    showast=False,
    showgrammar=False,
    code_objects={},
    compile_mode="exec",
    is_pypy=IS_PYPY,
    walker=FragmentsWalker,
)

Source from the content-addressed store, hash-verified

2022
2023# This interface is deprecated
2024def deparse_code(
2025 version,
2026 co,
2027 out=StringIO(),
2028 showasm=False,
2029 showast=False,
2030 showgrammar=False,
2031 code_objects={},
2032 compile_mode="exec",
2033 is_pypy=IS_PYPY,
2034 walker=FragmentsWalker,
2035):
2036 debug_opts = {"asm": showasm, "ast": showast, "grammar": showgrammar}
2037 return code_deparse(
2038 co,
2039 out,
2040 version=version,
2041 debug_opts=debug_opts,
2042 code_objects=code_objects,
2043 compile_mode=compile_mode,
2044 is_pypy=is_pypy,
2045 walker=walker,
2046 )
2047
2048
2049def code_deparse(

Callers

nothing calls this directly

Calls 2

StringIOClass · 0.85
code_deparseFunction · 0.70

Tested by

no test coverage detected