[Numpy-discussion] __array_interface__ / __array_struct__

Thomas Heller theller@ctypes....
Tue Jan 22 14:57:34 CST 2008

I am experimenting with implementing __array_interface__ and/or __array_struct__
properties for ctypes instances, and have problems to create numpy arrays
from them that share the memory.  Probably I'm doing something wrong;
what is the correct function in numpy to create these shared objects?

I am using numpy.core.multiarray.array(ctypes-object), is that correct?


More information about the Numpy-discussion mailing list