Given a python .pyc file, is there a tool that let me view the bytecode?

后端 未结 2 1957
别那么骄傲
别那么骄傲 2020-12-28 10:17

A Python module is automatically compiled into a .pyc file by CPython interpreter. The .pyc file, which contains the bytecode, is in binary format (marshaled code?). Is ther

2条回答
  •  温柔的废话
    2020-12-28 10:47

    There's a visual python disassembler called PyChrisanthemum.

    To do it the command-line way you can use module dis (python 2.7.3, python 3.2.3), as OP already found out.

提交回复
热议问题