Hi,
I have just run into this oddness:
In [28]: dt1 = np.dtype('f4')
In [29]: dt1.str
Out[29]: 'f4'
In [30]: dt2 = dt1.newbyteorder('')
In [31]: dt2.str
Out[31]: 'f4'
In [32]: dt1 == dt2
Out[32]: True
In [33]: hash(dt1) == hash(dt2)
Out[33]: False
This is the same as:
On Wed, Oct 20, 2010 at 5:08 PM, Matthew Brett matthew.br...@gmail.com wrote:
Hi,
I have just run into this oddness:
In [28]: dt1 = np.dtype('f4')
In [29]: dt1.str
Out[29]: 'f4'
In [30]: dt2 = dt1.newbyteorder('')
In [31]: dt2.str
Out[31]: 'f4'
In [32]: dt1 == dt2
Out[32]: True
Hi,
It already has a ticket :)
http://projects.scipy.org/numpy/ticket/1637
Oops - sorry - thanks for point that out.
Cheers,
Matthew
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org