MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __rsub__

Method __rsub__

tools/python-3.11.9-amd64/Lib/_pydecimal.py:1269–1275  ·  view source on GitHub ↗

Return other - self

(self, other, context=None)

Source from the content-addressed store, hash-verified

1267 return self.__add__(other.copy_negate(), context=context)
1268
1269 def __rsub__(self, other, context=None):
1270 """Return other - self"""
1271 other = _convert_other(other)
1272 if other is NotImplemented:
1273 return other
1274
1275 return other.__sub__(self, context=context)
1276
1277 def __mul__(self, other, context=None):
1278 """Return self * other.

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
__sub__Method · 0.45

Tested by

no test coverage detected