[Numpy-discussion] BUG(?): array([None])==None test
oliphant at ee.byu.edu
Fri Feb 10 16:52:02 EST 2006
Pearu Peterson wrote:
> While converting some Numeric based code to numpy, I noticed that
> in Numeric
> returns array() while in numpy it returns False.
> Is this expected behaviour or a bug?
It's expected behavior.
If you do an equality test on None then False is returned while True is
returned on an inequality test to None.
More information about the NumPy-Discussion