MCPcopy Index your code
hub / github.com/python/cpython / __rsub__

Method __rsub__

Lib/_pydecimal.py:1213–1219  ·  view source on GitHub ↗

Return other - self

(self, other, context=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
__sub__Method · 0.45

Tested by

no test coverage detected