Mark Dickinson <dicki...@gmail.com> added the comment: One more design question. For something like: '<HT{>H}H', what endianness should be used when packing/unpacking the last 'H'? Should the switch to '>' within the embedded struct be regarded as local to the struct?
With your patch, I get: >>> pack('<HT{>H}H', 1, (2,), 3) b'\x01\x00\x00\x02\x00\x03' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3132> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com