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

Method __eq__

numpy/core/tests/test_ufunc.py:1375–1376  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1373 def test_object_comparison(self):
1374 class HasComparisons:
1375 def __eq__(self, other):
1376 return '=='
1377
1378 arr0d = np.array(HasComparisons())
1379 assert_equal(arr0d == arr0d, True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected