[Numpy-discussion] Bug in arange dtype ">f" was: Using arr.dtype.type to check byteorder-independed dtype fails for bool

Stefan van der Walt stefan@sun.ac...
Tue Nov 13 15:41:59 CST 2007


On Tue, Nov 13, 2007 at 02:53:32PM +0100, Sebastian Haase wrote:
> trying to anwer your question with a quick "arange" test, I ran into
> more confusion:
> >> a = N.arange(.5, dtype=">f")
> >>> `a.dtype`
> 'dtype('float32')'
> >>> a = N.arange(.5, dtype="<f")
> >>> `a.dtype`
> 'dtype('float32')'

Hrm, that doesn't look right.  I'll take a look tomorrow.

Cheers
Stéfan


More information about the Numpy-discussion mailing list