Return self - other
(self, other, context=None)
| 1253 | __radd__ = __add__ |
| 1254 | |
| 1255 | def __sub__(self, other, context=None): |
| 1256 | """Return self - other""" |
| 1257 | other = _convert_other(other) |
| 1258 | if other is NotImplemented: |
| 1259 | return other |
| 1260 | |
| 1261 | if self._is_special or other._is_special: |
| 1262 | ans = self._check_nans(other, context=context) |
| 1263 | if ans: |
| 1264 | return ans |
| 1265 | |
| 1266 | # self - other is computed as self + other.copy_negate() |
| 1267 | return self.__add__(other.copy_negate(), context=context) |
| 1268 | |
| 1269 | def __rsub__(self, other, context=None): |
| 1270 | """Return other - self""" |
no test coverage detected