[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 at sun.ac.za
Tue Nov 13 16:41:59 EST 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