[Numpy-discussion] how to get info about internals of an arrayobject ?

Albert Strasheim fullung at gmail.com
Fri Sep 15 05:51:31 EDT 2006


> -----Original Message-----
> From: numpy-discussion-bounces at lists.sourceforge.net [mailto:numpy-
> discussion-bounces at lists.sourceforge.net] On Behalf Of Sebastian Haase
> Sent: 15 September 2006 03:21
> To: numpy-discussion
> Subject: [Numpy-discussion] how to get info about internals of an
> arrayobject ?
> 
> Hi,
> what I'm asking is if numpy has an equivalent to numarray's info()
> function:

> <snip>

> This was always helpful to me when debugging C binding code.
> 
> Especially I'm asking if there is any way to get the memory address of an
> array - for debugging purposes only - of course ;-)

numpy.array([]).__array_interface__['data'][0]

Cheers,

Albert





More information about the NumPy-Discussion mailing list