I have a python array that may or may not be None
:
arr = None # or possibly an array
x = arr == None
if x:
# do something
And it works for cases in which arr = None
, but if it is an array, I calculate the indices of the array which equal None
, instead.
What is the expression which will evaluate to true if some entity in python is, as a whole, == None
?