Directly Executable Files in Python

Benjamin Kaplan benjamin.kaplan at case.edu
Tue Mar 29 00:30:06 EDT 2011


On Tue, Mar 29, 2011 at 12:16 AM, harrismh777 <harrismh777 at charter.net> wrote:
> Chris Rebert wrote:
>>
>> Yes. py2exe is a tool which generates such Windows executables:
>> http://www.py2exe.org/
>
> Interesting... but it can't possibly be creating .exe files (compiling)... I
> don't buy it... it has to be reproducing the byte code interpreter in the
> code segment and the byte code in the data segment... so that each .exe file
> created by said process is actually loading an entire copy of at least the
> byte code interpreter with each program "compiled" ...  can't be very
> efficient??
>
> ... just a question?

If you can figure out a good way to compile a language like Python,
you'll be very rich. Yes, it is running the interpreter and then
running the bytecode on the interpreter. It's the same way Java and
.NET work.



More information about the Python-list mailing list