Author da4an1qu1
Recipients da4an1qu1
Date 2008-12-02.06:26:41
SpamBayes Score 0.00543292
Marked as misclassified No
Message-id <1228199205.8.0.509541493061.issue4484@psf.upfronthosting.co.za>
In-reply-to
Content
I note that using the struct module, a user can specify if number items
of the format are to be interpreted as either big or small endian.
However the format specifier can only accept one indicator character at
its first character to apply for all number items in it. e.g:

"<HI" specifies that both the unsigned short and unsigned int are to be
interpreted as little endian values.

It would be nice to be able to instead do "<>HI" where the first '<'
character indicates the default endianess (for compatibility purposes)
and then the second '>' character indicates that the unsigned short
should be interpreted as big endian. The unsigned int defaults to small
endian as per the first character.
History
Date User Action Args
2008-12-02 06:26:46da4an1qu1setrecipients: + da4an1qu1
2008-12-02 06:26:45da4an1qu1setmessageid: <1228199205.8.0.509541493061.issue4484@psf.upfronthosting.co.za>
2008-12-02 06:26:43da4an1qu1linkissue4484 messages
2008-12-02 06:26:41da4an1qu1create