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

Joe Jevnik jjevnik at quantopian.com
Sat Dec 26 17:36:08 EST 2015


The number and meaning of the arguments are documented in the dis module:
https://docs.python.org/3.6/library/dis.html

On Sat, Dec 26, 2015 at 5:20 PM, Erik <python at lucidity.plus.com> wrote:

> 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
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/joe%40quantopian.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151226/f20e08b2/attachment.html>


More information about the Python-Dev mailing list