Codeobjects of Modules?

gbgbgb at gmx.de gbgbgb at gmx.de
Thu Jun 21 03:29:34 EDT 2001


Hi!
I am writing an experimental virtual machine for Python-Byte-Code
in Python. It works fine for Functions (I am using the
f.func_code.co_code Bytecode.)

Now I want to run entire pyc-Files and/or modules. How do I get the
bytecode from modules and what is the format of the pyc-files. I could
not find any documentation. 

After finishing the PVM in Python I want to port it to - please do not
kill me - JAVASCRIPT. I think this could be interesting to be able to
execute python-byte-code on NS and IE without JAVA.

Any help is welcome!

gunter





More information about the Python-list mailing list