[Tutor] Compiling

Kent Johnson kent_johnson at skillsoft.com
Sun Oct 31 20:44:15 CET 2004


Are you thinking of taking this on as a project or are you wondering if 
someone has done it? If the latter, why do you want this?

If your goal is to make an exe from a python program, you can do that with 
py2exe http://starship.python.net/crew/theller/py2exe/ and others.

If your goal is to speed up critical sections of code, there are several 
ways to do this including psyco (http://psyco.sourceforge.net/index.html), 
pyrex (http://nz.cosc.canterbury.ac.nz/~greg/python/Pyrex/), and writing a 
C extension (http://docs.python.org/ext/ext.html).

Kent

Adam Bark wrote:
>Do you think it would be possible to pass Python through an interpreter to 
>create a C file then use a C compiler to create exe files?



More information about the Tutor mailing list