[Numpy-discussion] Array Interface updated

Travis Oliphant oliphant.travis at ieee.org
Tue Jun 13 20:41:36 CDT 2006


I've updated the description of the array interface (array protocol).  
The web-page is

http://numeric.scipy.org/array_interface.html

Basically, the Python-side interface has been compressed to the single 
attribute __array_interface__.  There is still the __array_struct__ 
attribute which now has a descr member to the structure returned (but 
the ARR_HAS_DESCR flag must be set or it must be ignored).

NumPy has been updated so that the old Python-side attributes are now 
spelled:

__array_<somename>__  --> __array_interface__['<somename>']

-Travis






More information about the Numpy-discussion mailing list