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

STINNER Victor report at bugs.python.org
Thu Sep 16 03:36:52 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

> bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sys.byteorder) (#28265)

The commit title is wrong, the default "big" not sys.byteorder:

    int.to_bytes(length=1, byteorder='big', *, signed=False)
    int.from_bytes(bytes, byteorder='big', *, signed=False)

----------

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


More information about the Python-bugs-list mailing list