[Numpy-tickets] [NumPy] #1010: Can't test for None in array
NumPy
numpy-tickets@scipy....
Thu Feb 19 11:11:22 CST 2009
#1010: Can't test for None in array
------------------------+---------------------------------------------------
Reporter: anjiro | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: numpy.core | Version: none
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Testing for `None` in an array always returns `False`:
{{{
>>> import numpy as np
>>> 5 in np.array([None, 5, 23])
True
>>> None in np.array([None, 5, 23])
False
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/1010>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list