C function taking double pointer to a structure variable as OUTPUT parameter

Diez B. Roggisch deets at nospam.web.de
Tue Jul 28 17:36:19 EDT 2009


fengmang_python at sina.com schrieb:
> Hi, Everyone,
> 
> I am a newbie to both Swig and Python. I am trying to export a set of C 
> APIs to Python.

If you are really dealing with a plain C-api, don't bother using SWIG - 
use ctypes. It comes with python >=2.5, is availabe as extra module for 
earlier versions, and makes wrapping C-libs a breeze.

Diez



More information about the Python-list mailing list