I worked all day with no result in converting integer to the string of form "\x.." at the Python 3.2. When ascii conversion was used or other I get '0x..' or '\\x..', which is not proper for me. Any bytes or unicode ("\u92") adding operations results with "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-2: end of string in escape sequence"
>>>bytes([92])
b'\\'
>>>chr(92) + "x" + str(42)
'\\x42'
>>> str(hex(66))
'0x42'
>>>ascii(bytes([255])).replace(r"'b\", "")
File "<stdin>", line 1
ascii(bytes([255])).replace(r"'b\", "")
^
SyntaxError: invalid syntax
>>> "\x".encode('raw_unicode_escape').decode('ascii')
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: end of string in escape sequence