[Numpy-discussion] Array Protocol change for Python 2.6
oliphant at ee.byu.edu
Fri Jun 9 12:50:00 CDT 2006
Albert Strasheim wrote:
>>From: numpy-discussion-bounces at lists.sourceforge.net [mailto:numpy-
>>discussion-bounces at lists.sourceforge.net] On Behalf Of Travis Oliphant
>>Sent: 08 June 2006 22:27
>>Subject: [Numpy-discussion] Array Protocol change for Python 2.6
>>I would like to eliminate all the other array protocol attributes before
>>NumPy 1.0 (and re-label those such as __array_data__ that are useful in
>>other contexts --- like ctypes).
>Just out of curiosity:
>In : x = N.array()
>In : x.__array_data__
>Out: ('0x01C23EE0', False)
>Is there a reason why the __array_data__ tuple stores the address as a hex
>string? I would guess that this representation of the address isn't the most
>useful one for most applications.
I suppose we could have stored it as a Python Long integer. But,
storing it as a string was probably inspired by SWIG.
More information about the Numpy-discussion