[NumPy-Tickets] [NumPy] #2117: inconsistent comparison of object type arrays

NumPy Trac numpy-tickets@scipy....
Thu Apr 26 13:23:25 CDT 2012

#2117: inconsistent comparison of object type arrays
 Reporter:  yarikoptic  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  Other       |     Version:  1.6.1      
 Keywords:              |  
 This issue became more visible since 1.6.x allowed to construct such
 heterogeneous arrays without specification of dtype=object:


 python -c 'import numpy as np; print np.__version__; a =
 np.array([np.array([0, 1]), np.array(1)]); print a.dtype; print a ==
 a.copy(); print a == np.array([np.array([0, 1]), np.array(1)])'
 [ True  True]


 So -- comparing an object array to itself's copy worked just fine but
 comparison to identically created another one -- failed.

Ticket URL: <http://projects.scipy.org/numpy/ticket/2117>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list