My notes on how to inspect CPython interpreter and it's bytecode
python -m ast example_programs/hello.py
python -m dis example_programs/hello.py
python -m py_compile example_programs/hello.py
python -m compiler.py example_programs/hello.py output.pyc
python output.pyc
Disassembler, AST and others in one script. See python itools.py --help
for options.
python itools.py example_programs/hello.py