-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Closed
Description
I would expect a numpy array containing boolean values to react meaningful to "is True"
Reproducing code example:
import numpy as np
np.array([True])[0] is True
Out[3]: False
np.array([True])[0] == True
Out[4]: True
dtype evaluates to dtype('bool').
I know that the dtype is not build-in anymore, and technically it does not "point to the same object" but I see no reason why numpy should not gracefully handle that situation and do what the user obviously wants to do there.
Metadata
Metadata
Assignees
Labels
No labels