Tue, 10 Mar 2009 13:08:17 -0600, Charles R Harris wrote: > It isn't 0 so it should be True. Any disagreement?
+1 Nonzero Python object, hence True. Moreover, it's also True in Python: >>> import numpy as np >>> type(np.nan) <type 'float'> >>> bool(np.nan) True IMHO, we should follow Python here, otherwise unnecessary confusion may arise. -- Pauli Virtanen _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion