Пример #1
0
 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
Пример #2
0
 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