Lines Matching refs:self
51 def __str__(self):
52 if self.x == m.inf:
54 elif self.x == -m.inf:
57 return str(self.x)
59 def __int__(self):
60 assert not m.isinf(self.x)
61 return self.x
63 def __float__(self):
64 return float(self.x)
67 def table(self):
68 return '%7s' % (self,)
73 def diff_diff(self, other):
74 new = self.x if self else 0
84 def ratio(self, other):
85 new = self.x if self else 0
100 def __add__(self, other):
101 return self.__class__(self.x + other.x)
103 def __sub__(self, other):
104 return self.__class__(self.x - other.x)
106 def __mul__(self, other):
107 return self.__class__(self.x * other.x)
123 def __add__(self, other):
124 return CodeResult(self.file, self.function,
125 self.size + other.size)
660 def __call__(self, parser, namespace, value, option):