-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct: per item endianess specification #48734
Comments
I note that using the struct module, a user can specify if number items "<HI" specifies that both the unsigned short and unsigned int are to be It would be nice to be able to instead do "<>HI" where the first '<' |
I don't see any reasonale reason for mixing endianess inside a struct, and don't know of any real-life protocol using per-item endianess. |
I agree that this seems like something that would rarely be needed. If it's really necessary, it's possible to break up the format and do the packing/unpacking in fixed-endian pieces. |
FWIW, I concur with Mark and Charles-Francois. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: