Lines Matching refs:x
34 def __new__(cls, x=0): argument
35 if isinstance(x, Int):
36 return x
37 if isinstance(x, str):
39 x = int(x, 0)
42 if re.match('^\s*\+?\s*(?:∞|inf)\s*$', x):
43 x = m.inf
44 elif re.match('^\s*-\s*(?:∞|inf)\s*$', x):
45 x = -m.inf
48 assert isinstance(x, int) or m.isinf(x), x
49 return super().__new__(cls, x)
52 if self.x == m.inf:
54 elif self.x == -m.inf:
57 return str(self.x)
60 assert not m.isinf(self.x)
61 return self.x
64 return float(self.x)
74 new = self.x if self else 0
75 old = other.x if other else 0
85 new = self.x if self else 0
86 old = other.x if other else 0
101 return self.__class__(self.x + other.x)
104 return self.__class__(self.x - other.x)
107 return self.__class__(self.x * other.x)
207 sym_at.sort(key=lambda x: (x[0], -x[2], x[1]))
450 key=lambda x: (x[0], x[1]))
470 i = bisect.bisect(sym_at, addr, key=lambda x: x[0])
487 i = bisect.bisect(line_at, addr, key=lambda x: x[0])
811 ' '.join('%*s' % (w, x)
812 for w, x in zip(widths[1:], lines[0][1:-1])),
847 ' '.join('%*s' % (w, x)
848 for w, x in zip(
867 ' '.join('%*s' % (w, x)
868 for w, x in zip(widths[1:], line[1:-1])),
882 ' '.join('%*s' % (w, x)
883 for w, x in zip(widths[1:], lines[-1][1:-1])),
1172 type=lambda x: (lambda k,v: (k, set(v.split(','))))(*x.split('=', 1)),
1205 type=lambda x: int(x, 0),
1211 type=lambda x: int(x, 0),
1222 type=lambda x: tuple(float(x) for x in x.split(',')),
1229 type=lambda x: tuple(float(x) for x in x.split(',')),
1236 type=lambda x: tuple(float(x) for x in x.split(',')),
1243 type=lambda x: tuple(float(x) for x in x.split(',')),
1249 type=lambda x: int(x, 0),
1254 type=lambda x: int(x, 0),
1265 type=lambda x: int(x, 0),
1270 type=lambda x: x.split(),