(self, other)
| 4081 | return prefix + result + ')' |
| 4082 | |
| 4083 | def _delegate_binop(self, other): |
| 4084 | # This emulates the logic in |
| 4085 | # private/binop_override.h:forward_binop_should_defer |
| 4086 | if isinstance(other, type(self)): |
| 4087 | return False |
| 4088 | array_ufunc = getattr(other, "__array_ufunc__", False) |
| 4089 | if array_ufunc is False: |
| 4090 | other_priority = getattr(other, "__array_priority__", -1000000) |
| 4091 | return self.__array_priority__ < other_priority |
| 4092 | else: |
| 4093 | # If array_ufunc is not None, it will be called inside the ufunc; |
| 4094 | # None explicitly tells us to not call the ufunc, i.e., defer. |
| 4095 | return array_ufunc is None |
| 4096 | |
| 4097 | def _comparison(self, other, compare): |
| 4098 | """Compare self with other using operator.eq or operator.ne. |
no outgoing calls
no test coverage detected