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

Method __rpow__

Lib/_pydecimal.py:2469–2474  ·  view source on GitHub ↗

Swaps self/other and returns __pow__.

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

Source from the content-addressed store, hash-verified

2467 return ans
2468
2469 def __rpow__(self, other, modulo=None, context=None):
2470 """Swaps self/other and returns __pow__."""
2471 other = _convert_other(other)
2472 if other is NotImplemented:
2473 return other
2474 return other.__pow__(self, modulo, context=context)
2475
2476 def normalize(self, context=None):
2477 """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