[issue27446] struct: allow per-item byte order

2017-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with the other reviewers. Am going to mark this as closed. If the need arises, just make multiple struct unpacks. -- nosy: +rhettinger stage: -> resolved status: open -> closed ___ Python tracker

[issue27446] struct: allow per-item byte order

2017-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Martin. -- nosy: +mark.dickinson, meador.inge, serhiy.storchaka resolution: -> rejected ___ Python tracker ___

[issue27446] struct: allow per-item byte order

2017-03-25 Thread Martin Panter
Martin Panter added the comment: This seems too obscure to be worth supporting in the built-in library IMO. The use case loses one line of code but gains a more complicated structure format string. -- nosy: +martin.panter ___ Python tracker

[issue27446] struct: allow per-item byte order

2016-07-03 Thread Zack Weinberg
New submission from Zack Weinberg: Occasionally one encounters binary formats which do not stick to one byte order throughout. For example, I have a C program that reads and writes arrays of this struct: ``` struct conn_data { uint32_t ipv4_addr; /* read - network byte order - target IPv4