Lines Matching refs:value
167 for index, value in enumerate(values):
168 if isinstance(value, str) and index in self._nested:
169 values[index] = self._nested[index](value)
214 def __setattr__(self, name, value): argument
217 self._values[self._FieldIndex(name)] = value
238 def _MaybePackStruct(value): argument
239 if hasattr(value, "__metaclass__"):# and value.__metaclass__ == Meta:
240 return value.Pack()
242 return value
249 def FieldDesc(index, name, value): argument
250 if isinstance(value, str):
252 value = value.rstrip("\x00")
253 elif any(c not in string.printable for c in value):
254 value = value.encode("hex")
255 return "%s=%s" % (name, value)