Interoperating with C

Grant Edwards invalid at invalid
Sat Oct 18 17:28:04 CEST 2008


On 2008-10-18, Michele <michele at nectarine.it> wrote:

> I would like to call C functions in a Python program, passing
> user-defined objects and primitive python types (str, ints, etc.); of
> course I also want to receive data from these functions, manipulating it
> in my python program.
> First of all: is this possible?

Yes.

> Secondly, what's the mapping between C types and Python types?

http://www.python.org/doc/2.5.2/ext/ext.html
http://www.python.org/doc/2.5.2/lib/module-ctypes.html

-- 
Grant Edwards                   grante             Yow! I want to kill
                                  at               everyone here with a cute
                               visi.com            colorful Hydrogen Bomb!!



More information about the Python-list mailing list