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

Method __rpow__

Lib/test/test_fractions.py:271–272  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

269 r = self.x * self.x + self.y * self.y
270 return self.__class__(other * (self.x / r), other * (self.y / r))
271 def __rpow__(self, other):
272 return Polar(other ** self.x, math.log(other) * self.y)
273 def __complex__(self):
274 return complex(self.x, self.y)
275 def __eq__(self, other):

Callers

nothing calls this directly

Calls 2

PolarClass · 0.85
logMethod · 0.45

Tested by

no test coverage detected