I have an application return in python. I want this to be
converted to C. I will be kind enough if somebody suggest is there any
tool or compiler to do that.
Praveen Kumar A.S
shd probably mention Shedskin, boost, ctypes, any others?
The PyPy LLVM backend will compile Python code to C.
Also Pyrex can do a bit more than just integrate C with Python, AFAIK
it *can* compile some Python to C - although with very little speed
advantage if you don't use native C types.
I've added a comment, which is seemingly all that can be done right now
on that page. See also this overview I wrote about Python and attempts
It is still rather experimental but I have been using 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...
Carl Friedrich Bolz
Shedskin is nothing but a compiler.