[Numpy-discussion] trivial question: how to compare dtype - but ignoring byteorder ?
Christopher Barker
Chris.Barker at noaa.gov
Mon Jul 24 19:43:46 CDT 2006
Sebastian Haase wrote:
> Which is why I was trying to change the str() representation of a type to
> something more intuitive.
> If nothing else one could even leave
> repr(a.dtype) --> '<i4'
> but
> str(a.dtype) --> 'int32 (little endian)'
+1
that's the whole point of __str__. It should be human readable!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Numpy-discussion
mailing list