(self, other)
| 4177 | return prefix + result + ')' |
| 4178 | |
| 4179 | def _delegate_binop(self, other): |
| 4180 | # This emulates the logic in |
| 4181 | # private/binop_override.h:forward_binop_should_defer |
| 4182 | if isinstance(other, type(self)): |
| 4183 | return False |
| 4184 | array_ufunc = getattr(other, "__array_ufunc__", False) |
| 4185 | if array_ufunc is False: |
| 4186 | other_priority = getattr(other, "__array_priority__", -1000000) |
| 4187 | return self.__array_priority__ < other_priority |
| 4188 | else: |
| 4189 | # If array_ufunc is not None, it will be called inside the ufunc; |
| 4190 | # None explicitly tells us to not call the ufunc, i.e., defer. |
| 4191 | return array_ufunc is None |
| 4192 | |
| 4193 | def _comparison(self, other, compare): |
| 4194 | """Compare self with other using operator.eq or operator.ne. |
no outgoing calls
no test coverage detected