Codeobjects of Modules?

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Jun 21 14:05:42 EDT 2001


gbgbgb at gmx.de writes:

> 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. 

Please have a look at the py_compile module. Essentially, it has the
magic, a time stamp, and the marshalled code object of the module.

> 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.

You can already do that, without either Java or JavaScript, using a
Python plug-in. For IE, PythonWin supports ActiveScripting out of the
box.

Regards,
Martin



More information about the Python-list mailing list