pass float array(list) parameter to C

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Mar 17 13:42:24 CET 2008


En Mon, 17 Mar 2008 01:17:31 -0200, zaley <lizhongan at gmail.com> escribi�:

> In my program, python is communicated with C use ctypes .
> I can't find a better way to  pass float array(list) parameter to C
> function.
> Can someone give me a help?

Use the array module to create an array of floats, like float[] in C.
http://docs.python.org/lib/module-array.html

-- 
Gabriel Genellina




More information about the Python-list mailing list