Compiling Python

Graham Ashton graham at effectif.com
Wed Jun 5 19:44:32 EDT 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