From: Travis O. <oli...@ie...> - 2006-09-15 16:44:00
|
Albert Strasheim wrote: >> -----Original Message----- >> From: num...@li... [mailto:numpy- >> dis...@li...] 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] > Or numpy.ctypes._as_parameter_ (should work even if you don't have ctypes installed) -Travis |