Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 943
Rella Avatar asked Apr 14 '10 16:04

Rella


People also ask

Can Python be translated to C?

Python code can make calls directly into C modules. Those C modules can be either generic C libraries or libraries built specifically to work with Python. Cython generates the second kind of module: C libraries that talk to Python's internals, and that can be bundled with existing Python code.

Can we convert Python code to C++?

Convert your Python script to C++ Code using OpenAI Codex. Created codex_py2cpp as a way of experimenting with Codex. Python file creates an input prompt which is then fed to OpenAI Codex to generate corresponding C++ code.


1 Answers

Shedskin translates Python code to C++.

like image 76
Jonas H. Avatar answered Sep 19 '22 18:09

Jonas H.