To view Python bytecode
$ python3 >>> import dis >>> def x(i): >>> return i+1 >>> dis.dis(x)
A Bit About Bytes: Python Bytecode - PyCon 2018 (YouTube)
dis — Disassembler for Python bytecode