[Numpy-discussion] array_equal returns True and 0

Keith Goodman kwgoodman@gmail....
Mon Jul 7 11:30:08 CDT 2008


I'm writing the doc string for array_equal. From the existing one-line
doc string I expect array_equal to return True or False. But I get
this:

>> np.array_equal([1,2], [1,2])
   True
>> np.array_equal([1,2], [1,2,3])
   0
>> np.array_equal(np.array([1,2]), np.array([1,2,3]))
   0
>> np.__version__
   '1.1.0'


More information about the Numpy-discussion mailing list