Re: Interoperating with C

2008-10-18 Thread Aaron Brady
Michele wrote: > Hi there, > 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? >

Re: Interoperating with C

2008-10-18 Thread Grant Edwards
On 2008-10-18, Michele <[EMAIL PROTECTED]> 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 al

Re: Interoperating with C

2008-10-18 Thread bearophileHUGS
Michele: > I would like to call C functions in a Python program, First of all take a look at the standard module ctypes. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Interoperating with C

2008-10-18 Thread Michele
Hi there, 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? Secondly, what's the mapping b