Exploring and decompiling python bytecode [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Lets say I have: >>> def test(a): >>> print a Now, I want to explore see how test looks like in its compiled form. >>> test.func_code.co_code '|\x00\x00GHd\x00\x00S' I can get the disassembled form using the dis module: >>> import dis >>> dis.dis(test) 2 0 LOAD_FAST 0 (a) 3 PRINT_ITEM 4 PRINT_NEWLINE 5 LOAD_CONST