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

Serhiy Storchaka report at bugs.python.org
Thu Sep 9 21:01:53 EDT 2021


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

Ah, signed=False by default, so (128).to_bytes() will work. But I still worry that it can provoke writing more errorprone code.

----------

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


More information about the Python-bugs-list mailing list