Message401597
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. |
|
Date |
User |
Action |
Args |
2021-09-10 16:31:22 | barry | set | recipients:
+ barry, rhettinger, mark.dickinson, ncoghlan, vstinner, petr.viktorin, ethan.furman, serhiy.storchaka, veky |
2021-09-10 16:31:22 | barry | link | issue45155 messages |
2021-09-10 16:31:22 | barry | create | |
|