Re: [Numpy-discussion] The I dtype character
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 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] The I dtype character
On Mon, Apr 8, 2013 at 8:14 AM, Georg Brandl g.bra...@gmx.net wrote: 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 means integer. i1 means integer with 8 bits. I means 32-bit unsigned integer. I1 means 32-bit unsigned integer with 8 bits. Obviously this last thing doesn't make much sense :-). Historically numpy as accepted it anyway, and just ignored the suffix. In current numpy it's still allowed for backwards compatibility, but deprecated, and will become an error at some point. See https://github.com/numpy/numpy/issues/294 -n ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] The I dtype character
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. thanks, Georg ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion