Python to C converter

Carl Friedrich Bolz cfbolz at gmx.de
Wed Jun 7 13:13:27 EDT 2006


Chance Ginger wrote:
> If you are looking for a "real" python to C, well in this case
> C++ look for the shedskin compiler. It will take a rather
> nice subset of Python and generate C++ code from it. 


In which sense is shedskin a more "real" python to C/C++ compiler than 
some of the other mentioned projects? As most of the others (PyPy, 
Pyrex), Shedskin works only for a small number of Python programs that 
don't mix types too wildly.

BTW: While the RPython (the subset of the Python language that PyPy can 
compile) might not be extremely advanced, using it gives you a number of 
very interesting features: like having the resulting program been 
enhanced to not use the C stack (for deeply recursive code), using 
different garbage collection strategies...

Cheers,

Carl Friedrich Bolz




More information about the Python-list mailing list