It\'s well-known that == on numpy arrays returns an array rather than a bool, but this is very inconvenient at times.
==
>>> [np.zeros(4)] == [