This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry
Date 2021-09-09.22:00:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631224831.05.0.436611360009.issue45155@roundup.psfhosted.org>
In-reply-to
Content
In the PEP 467 discussion, I proposed being able to use

>>> (65).to_bytes()
b'A'

IOW, adding default arguments for the `length` and `byteorder` arguments to `int.to_bytes()`

https://mail.python.org/archives/list/python-dev@python.org/message/PUR7UCOITMMH6TZVVJA5LKRCBYS4RBMR/

It occurs to me that this is (1) useful on its own merits; (2) easy to do.  So I've done it.  Creating this bug so I can link a PR against it.
History
Date User Action Args
2021-09-09 22:00:31barrysetrecipients: + barry
2021-09-09 22:00:31barrysetmessageid: <1631224831.05.0.436611360009.issue45155@roundup.psfhosted.org>
2021-09-09 22:00:31barrylinkissue45155 messages
2021-09-09 22:00:30barrycreate