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

Method __rpow__

Lib/_pydecimal.py:2466–2471  ·  view source on GitHub ↗

Swaps self/other and returns __pow__.

(self, other, modulo=None, context=None)

Source from the content-addressed store, hash-verified

2464 return ans
2465
2466 def __rpow__(self, other, modulo=None, context=None):
2467 """Swaps self/other and returns __pow__."""
2468 other = _convert_other(other)
2469 if other is NotImplemented:
2470 return other
2471 return other.__pow__(self, modulo, context=context)
2472
2473 def normalize(self, context=None):
2474 """Normalize- strip trailing 0s, change anything equal to 0 to 0e0"""

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
__pow__Method · 0.45

Tested by

no test coverage detected