[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

Martin Panter report at bugs.python.org
Thu Jul 28 00:50:39 EDT 2016


Martin Panter added the comment:

I wouldn’t mind the “host” byte order, assuming it just means use sys.byteorder. I think I have done this a few times, both when I really wanted the native byte order, and when I didn’t care, but assumed the native order might be slightly more efficient (e.g. bitwise arithmetic on 512-byte blocks).

But I don’t understand the point of “net” byte order. Wouldn’t it be the same as “big”?

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27638>
_______________________________________


More information about the Python-bugs-list mailing list