def value_to_bytes(self, obj, value, default_endianness=DEFAULT_ENDIANNESS):
        return struct.pack(str(self.endianness or default_endianness) + self.struct_format, value)
Read one line, using raw_input when available.
dataset/ETHPy150Open pebble/libpebble2/libpebble2/protocol/base/types.py/Field.value_to_bytes--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/pydoc.py/Helper.getline