Compiling Python

Graham Ashton graham at effectif.com
Thu Jun 6 01:44:32 CEST 2002


On Wed, 05 Jun 2002 11:31:19 +0100, 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?

Not exactly, in general. Have a look for py2exe, psyco, and pyrex for info
on some of the things that you can currently do.

GvR alludes to compilation being of interest in the future in a recent
interview:

   http://www.onlamp.com/pub/a/python/2002/06/04/guido.html

-- 
Graham Ashton



More information about the Python-list mailing list