Python Bytecode

Example of the disassembled function

To view Python bytecode

$ python3
>>> import dis
>>> def x(i):
>>>     return i+1
>>> dis.dis(x)

Links

A Bit About Bytes: Python Bytecode - PyCon 2018 (YouTube)

An introduction to Python bytecode

dis — Disassembler for Python bytecode