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 <B7883D92-A407-4A4B-940C-840FD19695A2@python.org>
In-reply-to <1631260100.52.0.00481104567541.issue45155@roundup.psfhosted.org>
Content
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 <report@bugs.python.org> 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.
History
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