Is there any free Python to C translator? [closed]
Asked Answered
D

3

7

Is there any free Python to C translator? for example capable to translate such lib as lib for Fast content-aware image resizing (which already depends on some C libs) to C files?

Deva answered 14/4, 2010 at 16:32 Comment(3)
@Mike: It is perfectly possible to program in a OOP fashion in C. So that is not really relevant.Uziel
@kigurai, It was relevant in the original edit because it was phrased like "classes" was a language feature.Azar
Possible duplicate of Convert Python program to C/C++ code?Retuse
O
6

I think that cython is what you're looking for http://www.cython.org/

Okwu answered 14/4, 2010 at 17:15 Comment(0)
H
7

Shedskin translates Python code to C++.

Hards answered 14/4, 2010 at 16:37 Comment(0)
O
6

I think that cython is what you're looking for http://www.cython.org/

Okwu answered 14/4, 2010 at 17:15 Comment(0)
Q
2

The fantastic PyPy project which aims to: "translate a Python-level description of the Python language itself to lower level languages", has a C backend. That is one of the lower level languages it aims to translate programs to is C.

Quoth answered 14/4, 2010 at 17:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.