-
由 Josh Bleecher Snyder 提交于
numpy.ndarray overrides __eq__ to do elemwise equality checks, thus yielding an ndarray, which cannot be cast as a bool. This doesn't play nicely with list.index; numpy throws a ValueError.
76ea3f45
numpy.ndarray overrides __eq__ to do elemwise equality checks, thus yielding an ndarray, which cannot be cast as a bool. This doesn't play nicely with list.index; numpy throws a ValueError.