On 4/2/2010 8:29 AM, Nadav Horesh wrote: > In python empty sequences are always equivalent to False, and non-empty to > True.
I think that was why the OP objected to this behavior: >>> bool(np.array([0])) False Alan Isaac _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion