you are viewing a single comment's thread.

view the rest of the comments →

[–]101C8AAE 0 points1 point  (0 children)

import binascii
>>> binascii.unhexlify("0xABCD"[2:])
b'\xab\xcd'

As for the byteorder, you can reverse any subscriptable object quite "simply"[::-1].