[Numpy-discussion] ctypes and numpy

Chris Colbert sccolbert@gmail....
Fri Nov 6 21:18:50 CST 2009


Are you bound to using ctypes as the only option?

This could be done quite easily in Cython...

On Fri, Nov 6, 2009 at 1:57 PM, Trevor Clarke <trevor@notcows.com> wrote:
> I've found some info on ctypes and numpy but it mostly tells me how to pass
> numpy objects to C funcs. I've got a C func which returns a c_void_p to a
> buffer and I'd like to access the data using numpy without creating a copy
> of the data. Could someone point me in the right direction?
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


More information about the NumPy-Discussion mailing list