MCPcopy Index your code
hub / github.com/RustPython/RustPython / __rsub__

Method __rsub__

Lib/_pydecimal.py:1210–1216  ·  view source on GitHub ↗

Return other - self

(self, other, context=None)

Source from the content-addressed store, hash-verified

1208 return self.__add__(other.copy_negate(), context=context)
1209
1210 def __rsub__(self, other, context=None):
1211 """Return other - self"""
1212 other = _convert_other(other)
1213 if other is NotImplemented:
1214 return other
1215
1216 return other.__sub__(self, context=context)
1217
1218 def __mul__(self, other, context=None):
1219 """Return self * other.

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
__sub__Method · 0.45

Tested by

no test coverage detected