On Mon, Jul 7, 2008 at 11:30, Keith Goodman <[EMAIL PROTECTED]> wrote:
> 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'

Fixed on the trunk. array_equal() and array_equiv() now consistently
return either True or False exactly.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to