[Numpy-discussion] The "I" dtype character

Georg Brandl g.brandl at gmx.net
Fri Apr 12 02:44:12 EDT 2013


Am 08.04.2013 09:14, schrieb Georg Brandl:
> Hi,
> 
> is it intentional that "I" is supported as a dtype character, but cannot be
> suffixed with a size?
> 
>>>> dtype('i1')
> dtype('int8')
>>>> dtype('I1')
> dtype('uint32')
> 
> I know "u" is documented as unsigned integer, but this seems an unnecessary
> restriction that is confusing.

Looking at the code, I see now that using "I2" raises a
DeprecationWarning anyway, which is fair enough.

Georg




More information about the NumPy-Discussion mailing list