Compiling Python

Peter Hansen peter at engcorp.com
Wed Jun 5 16:44:43 CEST 2002


TuxTrax wrote:
> 
> Hello all
> 
> I am new to this forum, and to Python, please excuse the newbie question.
> 
> I have started reading the o'reilly book, "learning python" and find python
> to be an amazing language so far. My first impression of it is a language that
> is easier than basic to learn and use, and more powerful than many other
> high level languages such as pascal.
> 
> 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?

Why do you want to do that?  For presumably increased speed, or because
you don't want the hassle of multiple .py files all over the place (in
other words, better packaging)?

-Peter



More information about the Python-list mailing list