[SciPy-dev] adding new attribute to data type objects

Christopher Hanley chanley at stsci.edu
Wed Nov 2 12:46:50 CST 2005

Christopher Hanley wrote:
>>all return the same thing:  64
>>There is also a new nbytes attribute of ndarray's that does the itemsize 
>>* size multiplication for you to give the number of bytes in the array.
> Thank you Travis,
> I like this solution much more than going through the multiarray module.
> Chris

By the way, I've modified the nbytes dictionary to return the value in 
bytes instead of bits.

More information about the Scipy-dev mailing list