I am given a piece of python byte code written by others without the source file.
It can be run successfully. And I want to disassemble it.
The problem is that after executing the following code:
import dis
dis.dis(byte_code)
I just got the function name, instead of the function body.
In addition, if I try to import the byte code, I'll get some errors:
ImportError: Bad magic number
So, is there some way to disassemble the function body?