Why not a Python compiler?

Jean-Paul Calderone exarkun at divmod.com
Thu Feb 7 06:36:24 EST 2008


On Thu, 07 Feb 2008 11:03:12 +0100, Stefan Behnel <stefan_ml at behnel.de> wrote:
>Santiago Romero wrote:
> [snip]
>>
>>  Why not a Python COMPILER?
>>
>>  It would be very nice to be able to output Linux, MAC or Windows
>> binaries of compiled (not bytecompiled) code. It would run faster, it
>> will be smaller in size (I think)
>
>Take a look at Cython. It's an optimising Python-to-C compiler for writing
>Python extensions. So you can basically take a Python module and compile it to
>C code that runs against the CPython runtime.
>
>http://cython.org/
>

It's a not-quite-Python-to-C compiler.  I don't think it is an optimizing
compiler either.  Can you provide a reference for this?

Jean-Paul



More information about the Python-list mailing list