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, ethan.furman, mark.dickinson, ncoghlan, petr.viktorin, rhettinger, serhiy.storchaka, veky, vstinner
Date 2021-09-10.16:31:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
Just to point out, struct module also uses “native” (i.e. system) byte order by default.  Any choice other than that for to_bytes() seems both arbitrary and inconsistent.

> On Sep 10, 2021, at 00:48, Petr Viktorin <> wrote:
> Exactly, a platform-dependent default is a bad idea. A default allows using the function without the code author & reviewer even being *aware* that there is a choice, and that is dangerous.
Date User Action Args
2021-09-10 16:31:22barrysetrecipients: + barry, rhettinger, mark.dickinson, ncoghlan, vstinner, petr.viktorin, ethan.furman, serhiy.storchaka, veky
2021-09-10 16:31:22barrylinkissue45155 messages
2021-09-10 16:31:22barrycreate