Return self - other
(self, other, context=None)
| 1197 | __radd__ = __add__ |
| 1198 | |
| 1199 | def __sub__(self, other, context=None): |
| 1200 | """Return self - other""" |
| 1201 | other = _convert_other(other) |
| 1202 | if other is NotImplemented: |
| 1203 | return other |
| 1204 | |
| 1205 | if self._is_special or other._is_special: |
| 1206 | ans = self._check_nans(other, context=context) |
| 1207 | if ans: |
| 1208 | return ans |
| 1209 | |
| 1210 | # self - other is computed as self + other.copy_negate() |
| 1211 | return self.__add__(other.copy_negate(), context=context) |
| 1212 | |
| 1213 | def __rsub__(self, other, context=None): |
| 1214 | """Return other - self""" |
no test coverage detected