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

Method __rpow__

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

Source from the content-addressed store, hash-verified

3606 else:
3607 return I(pow(int(self), int(other), int(mod)))
3608 def __rpow__(self, other, mod=None):
3609 if mod is None:
3610 return I(pow(int(other), int(self), mod))
3611 else:
3612 return I(pow(int(other), int(self), int(mod)))
3613
3614 self.assertEqual(repr(I(1) + I(2)), "I(3)")
3615 self.assertEqual(repr(I(1) + 2), "I(3)")

Callers

nothing calls this directly

Calls 2

powFunction · 0.85
IClass · 0.70

Tested by

no test coverage detected