[issue45155] Add default arguments for int.to_bytes()
Barry A. Warsaw
report at bugs.python.org
Thu Sep 9 21:15:17 EDT 2021
Barry A. Warsaw <barry at python.org> added the comment:
For the common case where you’re using all defaults, it won’t matter. byteorder doesn’t matter when length=1.
> On Sep 9, 2021, at 18:12, Raymond Hettinger <report at bugs.python.org> wrote:
>
>
> Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
>
> Perhaps instead of the system byte ordering, choose one for the default so that default encoding/decoding will work cross platform. I think "little" is the most common (intel and arm).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45155>
_______________________________________
More information about the Python-bugs-list
mailing list