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

Method __rpow__

Lib/test/test_descr.py:3519–3523  ·  view source on GitHub ↗
(self, other, mod=None)

Source from the content-addressed store, hash-verified

3517 else:
3518 return I(pow(int(self), int(other), int(mod)))
3519 def __rpow__(self, other, mod=None):
3520 if mod is None:
3521 return I(pow(int(other), int(self), mod))
3522 else:
3523 return I(pow(int(other), int(self), int(mod)))
3524
3525 self.assertEqual(repr(I(1) + I(2)), "I(3)")
3526 self.assertEqual(repr(I(1) + 2), "I(3)")

Callers

nothing calls this directly

Calls 2

IClass · 0.70
powFunction · 0.50

Tested by

no test coverage detected