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?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- Multiple sockets for clients to connect to
- How to get the background from multiple images by
- Evil ctypes hack in python
Shedskin translates Python code to C++.
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.
I think that cython is what you're looking for http://www.cython.org/