[Numpy-discussion] test_multiarray.test_clip fails on Solaris 8 system

Christopher Hanley chanley@stsci....
Sun Apr 1 18:03:37 CDT 2007


Hi Stefan,

This is what I get:
 >>> import sys
 >>> print sys.byteorder
big
 >>> import numpy as N
 >>> print 
N.array([1,2,3],N.dtype(N.int16).newbyteorder('<')).dtype.byteorder
<
 >>> print 
N.array([1,2,3],N.dtype(N.int16).newbyteorder('>')).dtype.byteorder
 >
 >>> print 
N.array([1,2,3],N.dtype(N.int16).newbyteorder('=')).dtype.byteorder
=
 >>>

Stefan van der Walt wrote:
> Hi Chris
>
> Would you please run the following commands and show their output?
>
> import sys
> print sys.byteorder
>
> import numpy as N
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('<')).dtype.byteorder
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('>')).dtype.byteorder
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('=')).dtype.byteorder
>
> Output on my little-endian system is
>
> little
> <
>   
> =
>
> and I'd be curious to see if the output on a big-endian system follows
> the same pattern.
>
> I'd expect
>
> big
> <
>   
> =
>
> Cheers
> Stéfan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>   



More information about the Numpy-discussion mailing list