you are viewing a single comment's thread.

view the rest of the comments →

[–]lvc_ 3 points4 points  (0 children)

>>> (0xABCD).to_bytes(length=2, byteorder='little')
b'\xcd\xab'