[NumPy-Tickets] [NumPy] #2017: On 32 bit, uintp and uint32 do not have the same hash
NumPy Trac
numpy-tickets@scipy....
Thu Jan 12 12:34:11 CST 2012
#2017: On 32 bit, uintp and uint32 do not have the same hash
------------------------+---------------------------------------------------
Reporter: twiecki | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.1
Keywords: |
------------------------+---------------------------------------------------
>>> np.uintp
numpy.uint32
>>> np.dtype(np.uintp) == np.dtype(np.uint32)
True
>>> hash(np.dtype(np.uintp)) == hash(np.dtype(np.uint32))
False
This creates a problem for using dtypes as dict keys. Also, it seems that
this bug is not present on 64 bit, where uintp and uint64 have the same
hash.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2017>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list