how to combine c and python code ?

Emile

Global Mod
Global Mod
How to combine C and Python code?
There a number of ways to do this. The rawest, simplest way is to use the Python C API and write a wrapper for your C library which can be called from Python. This ties your module to CPython. The second way is to use ctypes which is an FFI for Python that allows you to load and call functions in C libraries directly.Jan 20, 2011