I have an integer list in Python that should match the following int values ββ(which can be changed to hexadecimal byte values):
[10, 145, 140, 188, 212, 198, 210, 25, 152, 20, 120, 15, 49, 113, 33, 220, 124, 67, 174, 224, 220, 241, 241]
However, when I convert this list to bytearray (using bytearray (nameOfList)), I get the following listing.
bytearray(b'\n\x91\x8c\xbc\xd4\xc6\xd2\x19\x98\x14x\x0f1q!\xdc|C\xae\xe0\xdc\xf1\xf1')
I can get the correct values ββfrom this byte array, no matter how it prints, but shouldn't the post print match the hexadecimal values ββof the byte array? (I mean that it apparently follows the hexadecimal values ββmostly until after \ x0f, where it starts to confuse gibberish ...)
panoptical
source share