SWIG - Simplified Wrapper and Interface Generator

This is another way to include C code in python program. Please refer this approach in SWIG Website.

Python / C API

This python/ C API method is most widely used method which supports to manipulate python objects in your C code.
All objects in python are denoted as a PyObject struct and the Python.h header file has various functions for manipulation.
PyList_Size() function on the struct is used to get ength of list or array.
python / c api can be referred in website.
« PreviousNext »