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

NumPy Trac numpy-tickets@scipy....
Fri Apr 27 05:10:20 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:              |  
------------------------+---------------------------------------------------

Comment(by charris):

 OTOH


 {{{
 In [37]: a = np.array([[257]*2, 257], dtype=object)

 In [38]: b = np.array([[257]*2, 257], dtype=object)

 In [39]: a == b
 Out[39]: array([ True,  True], dtype=bool)

 In [40]: a[0] is b[0]
 Out[40]: False

 }}}

 So it looks specific to arrays.

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


More information about the NumPy-Tickets mailing list