[Python-Dev] Is there a reference manual for Python bytecode?

Erik python at lucidity.plus.com
Sat Dec 26 17:20:28 EST 2015


Hi.

Looking at ceval.c and peephole.c, there is - of course - lots of 
specific hard-coded knowledge of the bytecode (e.g., number of operands 
and other attributes). I'd like to experiment at this level, but I can't 
seem to find a reference for the bytecode.

Is there the equivalent of something like the ARM ARM(*) for Python 
bytecode? I can read Python or C code if it's encoded that way, but I'm 
looking for something that's a bit more immediate than deciphering what 
an interpreter or optimizer is trying to do (i.e., some sort of table 
layout or per-opcode set of attributes).

BR,
E.

(*) 
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0406c/index.html


More information about the Python-Dev mailing list