[MATRIX-SIG] array(a) == array(a)

Alexander Lawhead alawhead@vcn.bc.ca
Mon, 1 Sep 1997 15:41:06 -0700 (PDT)


I was wondering why testing the equivalence of NumPy arrays 
doesn't seem to function properly:
 
>>> a = range(10)
>>> a == a
1
>>> array(a) == array(a)          
0            
>>> array(a).tolist() == array(a).tolist()
1
 
Alexander                                          
 
        


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________