[Numpy-discussion] Recarray comparison and byte order

Ian Mallett geometrian@gmail....
Sat Oct 31 13:46:50 CDT 2009

On Sat, Oct 31, 2009 at 9:38 AM, Matthew Brett <matthew.brett@gmail.com>wrote:

> c = a.byteswap().newbyteorder()
> c == a
In the last two lines, a variable "c" is assigned to a modified "a".  The
next line tests (==) to see if "c" is the same as (==) the unmodified "a".
It isn't, because "c" is the modified "a".  Hence, "False".

Do you mean:
c = a
instead of:
c == a

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20091031/c1ccf72e/attachment.html 

More information about the NumPy-Discussion mailing list