[Numpy-discussion] dtype comparison, hash
lists at informa.tiker.net
Mon Dec 26 20:22:05 EST 2011
- 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
Size: 189 bytes
Desc: not available
More information about the NumPy-Discussion