def __pow__(self, other): if isinstance(other, Real): result = math.pow(self.data, other.data) elif isinstance(other, self.convertable): result = math.pow(self.data, other) return result