On Mon, Sep 9, 2019 at 6:37 AM Eko palypse <ekopaly...@gmail.com> wrote: > > > You haven't said whether your machine is big-endian or little-endian. > > Correct, it is little but I'm wondering why this isn't taking into account. > I thought a method called fromhex would imply that bytes for an integer > should be created and as that it would use the proper byte order to create it. > But it seems that it treats the string literally. > Isn't that confusing? >
No, constructing a bytes literal from hex digits implies that they follow the sequence in the string of digits. It's nothing to do with the endinanness of integers. ChrisA -- https://mail.python.org/mailman/listinfo/python-list