[issue45155] Add default arguments for int.to_bytes()

Matthew Barnett report at bugs.python.org
Mon Sep 13 20:31:01 EDT 2021


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

I wonder whether there should be a couple of other endianness values, namely, "native" and "network", for those cases where you want to be explicit about it. If you use "big" it's not clear whether that's because you want network endianness or because the platform is big-endian.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45155>
_______________________________________


More information about the Python-bugs-list mailing list