[Numpy-discussion] dtype comparison, hash

Andreas Kloeckner lists at informa.tiker.net
Mon Dec 26 20:22:05 EST 2011

Hi all,

Two questions:

- Are dtypes supposed to be comparable (i.e. implement '==', '!=')? 
- Are dtypes supposed to be hashable?

PyCUDA and PyOpenCL assume both in a few places, but at least
hashability doesn't seem to be true. (If so, __hash__ should be
implemented to throw an error. If not, we found a bug in the hash


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111227/93ad4a74/attachment.sig>

More information about the NumPy-Discussion mailing list