On 9/19/2008 12:02 PM Peter Saffrey apparently wrote:
> >>> a = array([1,2,nan])
> >>> nan in a
> False

Huh.  I'm inclined to call this a bug,
since normal Python behavior is that
``in`` should check for identity::

        >>> xl = [1.,np.nan]
        >>> np.nan in xl
        True

Alan

_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to