[Numpy-discussion] memory address of array data?

Stéfan van der Walt stefan at sun.ac.za
Mon Aug 17 02:50:44 EDT 2009


2009/8/16 Robert <kxroberto at googlemail.com>:
> Is there a function to get the memory address (int) of
> (contigious) ndarray data on Python level - like
> array.array.buffer_info() ?
> I'd need it to pass it to a camera function.

Have a look at the array interface:

x.__array_interface__['data']

Regards
Stéfan



More information about the NumPy-Discussion mailing list