I am using python 3 and try to convert a hex-string to a byte-represented form. So i used the following command:
bytes.fromhex('97ad300414b64c')
I Expected results like this: b'\x97\xad\x30\x04\x14\xb6\x4c'' but got b'\x97\xad0\x04\x14\xb6L'. I am note sure what i am doing wrong, but maybe it is something with the encoding?
printfunction tries to make things 'look' friendly. And doesn't in this case.print(bytes.fromhex('4d65727279204368726973746d6173'))print(repr(b"\x30"))\x30=>'0'and\x4c=>'L'.bytesin Python 3 after converting from hex string.)binascii.hexlify) is what i needed at this time.