[Numpy-discussion] dtype itemsize stored in 32 bit value?

russel russel at appliedminds.com
Thu Apr 14 21:32:27 EDT 2011


Is this a bug?

In [81]: a = np.dtype([('field', 'u1', (2**31,))])

In [82]: a.itemsize
Out[82]: -2147483648




More information about the NumPy-Discussion mailing list