[Numpy-tickets] [NumPy] #936: Hashing protocol violation.

NumPy numpy-tickets@scipy....
Wed Oct 15 17:20:08 CDT 2008

#936: Hashing protocol violation.
 Reporter:  charris  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  1.3.0   
Component:  Other    |     Version:  none    
 Severity:  normal   |    Keywords:          
 Copied from Robert Kern's post on numpy-discussion:

 Actually, the problem is that we provide a hash function explicitly. In

    PyArrayDescr_Type.tp_hash = (hashfunc)_Py_HashPointer;

 That is a violation of the hashing protocol (objects which compare equal
 and are hashable need to hash equal), and should be fixed.

Ticket URL: <http://scipy.org/scipy/numpy/ticket/936>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list