Lines Matching refs:self
42 def __str__(self):
43 if self.x == m.inf:
45 elif self.x == -m.inf:
48 return str(self.x)
50 def __int__(self):
51 assert not m.isinf(self.x)
52 return self.x
54 def __float__(self):
55 return float(self.x)
58 def table(self):
59 return '%7s' % (self,)
64 def diff_diff(self, other):
65 new = self.x if self else 0
75 def ratio(self, other):
76 new = self.x if self else 0
91 def __add__(self, other):
92 return self.__class__(self.x + other.x)
94 def __sub__(self, other):
95 return self.__class__(self.x - other.x)
97 def __mul__(self, other):
98 return self.__class__(self.x * other.x)
115 def __add__(self, other):
116 return StackResult(self.file, self.function,
117 self.frame + other.frame,
118 max(self.limit, other.limit),
119 self.children | other.children)
690 def __call__(self, parser, namespace, value, option):