"M1st0" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> where I can find the grammar of python bytecode ? ( better if is in BCF

I believe the top-level production is something like
BYTECODE := (OPCODE ARGS)*
See the documentation for the dis module for symbolic opcodes and 
corresponding args.

Looking for patterns in bytecodes is one way CPython has been sped up. 
Previous results have occasionally been reported on the Python development 
list, archived somewhere at python.org.  Examples I remember are the 
frequencies of both individual bytecodes and of pair of codes.

For parse trees, you should look at the parser and compiler modules.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to