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 josh.r
Recipients alex.henrie, josh.r
Date 2018-10-04.02:39:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
to_bytes and from_bytes aren't remotely related to native primitive types, struct is. If the associated lengths aren't 2, 4 or 8, there is no real correlation with system level primitives, and providing these defaults makes it easy to accidentally write non-portable code.

Providing a default might make sense, but if you do, it should be a fixed default (so output is portable). Making it depend on the system byte order for no real reason aside from "so I can do struct-like things faster in a non-struct way" is not a valid reason to make a behavior both implicit and inconsistent.
Date User Action Args
2018-10-04 02:39:55josh.rsetrecipients: + josh.r, alex.henrie
2018-10-04 02:39:55josh.rsetmessageid: <>
2018-10-04 02:39:55josh.rlinkissue34889 messages
2018-10-04 02:39:55josh.rcreate