title: Why does "ndarray.all() is False" always returns False in python?
body: <p>Was wondering about the logic in python. When using any() or all() on a numpy array and using is False/True I always get False, but when using &quot;==&quot; I get the answer I expect.
  So</p>
  <pre><code>import numpy as np
  a = np.array([True,False,True])
  a.any() is False 
  &gt;False
  a.any() is True
  &gt;False
  </code></pre>
  <p>but this work as expected</p>
  <pre><code>a.any() == True
  &gt;True
  a.any() == False
  &gt;False
  </code></pre>