MCPcopy Create free account
hub / github.com/numpy/numpy / __eq__

Method __eq__

numpy/core/tests/test_regression.py:2219–2220  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2217 # gh-4709
2218 class Foo(np.ndarray):
2219 def __eq__(self, other):
2220 return "OK"
2221
2222 x = np.array([1, 2, 3]).view(Foo)
2223 assert_equal(10 == x, "OK")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected