Lines Matching refs:value
46 def hex_to_int(value): argument
47 if hasattr(value, 'text'):
48 value = value.text
49 if isinstance(value, int):
50 return value
51 elif isinstance(value, (float, Decimal)):
52 return int(value)
53 elif isinstance(value, str) and value.startswith("0x"):
54 return int(value, base=16)
56 raise TypeError('invalid type {!r} for integer'.format(type(value)))
78 value = hex_to_int(op)
79 for idx, bit in enumerate(reversed(bin(value)[2:])):
89 value = self.data_value(item)
90 if value == arg2:
100 value = self.data_value(item)
102 context.item = value
104 if value in results:
105 if value not in reported:
106 yield value
107 reported.append(value)
109 results.append(value)
158 varnames = [self[k][0].value for k in range(0, len(self) - 1, 2)]