| Start |
|---|
Constants in the dis module |
| What is Python bytecode? Python is a hybrid interpreter. When running a program, it first assembles it into bytecode which can then be run in the Python interpreter (also called a Python virtual machine). The The Python interpreter is stack-based and uses a first-in last-out system. Each operation code (opcode) in the Python assembly language (the bytecode) takes a fixed number of items from the stack and returns a fixed number of items to the stack. If there aren't enough items on the stack for an opcode, the Python interpreter will crash, possibly without an error message. |
| Disassembling modules To disassemble a Python module, first this has to be turned into a Then in an interpreter, run This will compile a Python module and output the bytecode instructions with |
Read Article
https://develop.horje.com/learn/1434/reference