[Numpy-discussion] The array interface published

Michiel Jan Laurens de Hoon mdehoon at ims.u-tokyo.ac.jp
Mon Apr 4 19:13:33 CDT 2005


Magnus Lie Hetland wrote:
> Michiel Jan Laurens de Hoon <mdehoon at ims.u-tokyo.ac.jp>:
>>2) The __array_datalen__ is introduced to get around the 32-bit int
>>limitation of len(). Another option is to fix len() in Python
>>itself, so that it can return integers larger than 32 bits. So we
>>can avoid adding a new method.
> 
> 
> That would bee good, IMO. But how realistic is it? (I have no idea --
> this is not a rhetorical question :)

Actually, why is __array_datalen__ needed at all? Can't it be calculated 
trivially from __array_shape__?

--Michiel.

-- 
Michiel de Hoon, Assistant Professor
University of Tokyo, Institute of Medical Science
Human Genome Center
4-6-1 Shirokane-dai, Minato-ku
Tokyo 108-8639
Japan
http://bonsai.ims.u-tokyo.ac.jp/~mdehoon




More information about the Numpy-discussion mailing list