Barry A. Warsaw <ba...@python.org> added the comment: 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 <rep...@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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45155> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com