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