[Numpy-discussion] trivial question: how to compare dtype - but ignoring byteorder ?

Bill Baxter wbaxter at gmail.com
Mon Jul 24 18:42:18 CDT 2006

> > And I think byteorder matters when comparing dtypes:
> > >>> numpy.dtype('>f4') == numpy.dtype('<f4')
> > False

Ohhhhh -- that '<' part is indicating *byte order* ?!
I thought it was odd that numpy could only tell me the type was "less
than f4", which I assumed must be shorthand for "less than or equal to
f4".  Makes much more sense now!


More information about the Numpy-discussion mailing list