Compiling Python
Jerzy Karczmarczuk
karczma at info.unicaen.fr
Wed Jun 5 07:08:56 EDT 2002
TuxTrax wrote:
> My question is this; I realize that Python compiles to bytecode automatically
> as part of the interpreters tokenization run, but is there a way to permanently
> compile python code outputting to an executable binary?
Once upon a time Guido Van Rossum thought "this seems very difficult,
perhaps impossible".
He changed his mind a little bit now...
See:
http://www.onlamp.com/pub/a/python/2002/06/04/guido.html
and the references cited by The Master:
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
http://homepages.ulb.ac.be/~arigo/psyco/
Don't forget also that Jython produces Java code. Not an
"executable binary" directly, but ...
You may also embed a Python kernel in your application, see
the tutorial:
http://www.python.org/doc/current/ext/embedding.html
==
Jerzy Karczmarczuk
Caen, France
More information about the Python-list
mailing list