Nice overview of Python bytecode. Reminded me of the 'No Frills Introduction to Lua 5.1 VM Instructions'[1]. I have not seen a similar document for Python yet, is there one?
I don't think so; https://docs.python.org/3/library/dis.html#python-bytecode-i... was the closest I found when I was writing a compiler for a subset of Python, and that doc was a little sketchy and out of date. I ended up consulting the CPython source a lot and reading some helpful blog series:
Also Python 2 comes with a 'compiler' module which reimplements the built-in compiler in Python. (The real one is in C. The Python one was dropped from Python 3.)
[1] http://luaforge.net/docman/83/98/ANoFrillsIntroToLua51VMInst...