Do you want the string of length 6 defined by the Python string literal "\xFF\xFF\xBF\xDE\x16\x05" or the string of length 24 given by "\\xFF\\xFF\\xBF\\xDE\\x16\\x05"?
–
Sven MarnachJul 29 '11 at 14:48

The terms "hex string" and "format" are misleading, what you really want is to form an integer of arbitrary size to a byte string with big-endian order.
–
Ferdinand BeyerJul 29 '11 at 15:44

1

Please excuse my English - I just translated the terms from my first language - thank you for the translation.
–
OxymoronAug 2 '11 at 10:06