Lines Matching refs:x
43 def __new__(cls, x=0): argument
44 if isinstance(x, Int):
45 return x
46 if isinstance(x, str):
48 x = int(x, 0)
51 if re.match('^\s*\+?\s*(?:∞|inf)\s*$', x):
52 x = m.inf
53 elif re.match('^\s*-\s*(?:∞|inf)\s*$', x):
54 x = -m.inf
57 assert isinstance(x, int) or m.isinf(x), x
58 return super().__new__(cls, x)
61 if self.x == m.inf:
63 elif self.x == -m.inf:
66 return str(self.x)
69 assert not m.isinf(self.x)
70 return self.x
73 return float(self.x)
83 new = self.x if self else 0
84 old = other.x if other else 0
94 new = self.x if self else 0
95 old = other.x if other else 0
110 return self.__class__(self.x + other.x)
113 return self.__class__(self.x - other.x)
116 return self.__class__(self.x * other.x)
299 sym_at.sort(key=lambda x: (x[0], -x[2], x[1]))
512 key=lambda x: (x[1], x[0]))
524 i = bisect.bisect(line_at, addr, key=lambda x: x[0])
845 ' '.join('%*s' % (w, x)
846 for w, x in zip(widths[1:], lines[0][1:-1])),
881 ' '.join('%*s' % (w, x)
882 for w, x in zip(
901 ' '.join('%*s' % (w, x)
902 for w, x in zip(widths[1:], line[1:-1])),
916 ' '.join('%*s' % (w, x)
917 for w, x in zip(widths[1:], lines[-1][1:-1])),
1200 type=lambda x: (lambda k,v: (k, set(v.split(','))))(*x.split('=', 1)),
1241 type=lambda x: int(x, 0),
1247 type=lambda x: int(x, 0),
1258 type=lambda x: tuple(float(x) for x in x.split(',')),
1264 type=lambda x: int(x, 0),
1269 type=lambda x: int(x, 0),
1280 type=lambda x: int(x, 0),
1285 type=lambda x: x.split(),
1290 type=lambda x: x.split(),
1322 type=lambda x: x.split(),