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

Serhiy Storchaka report at bugs.python.org
Sun Sep 12 04:21:45 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The struct module has 4 different modes. By default it uses not only native byte order, but native sizes and alignments which depend on OS and compiler. You need to know all these details just to understand the format codes. I think that the struct module user is more prepared to work with different word sizes and therefore with different byte ordering.

----------

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


More information about the Python-bugs-list mailing list