[Python-Dev] str with base
Bob Ippolito
bob at redivi.com
Tue Jan 17 12:12:17 CET 2006
On Jan 17, 2006, at 2:48 AM, Fredrik Lundh wrote:
> Bob Ippolito wrote:
>
>> I want binary all the time when I'm dealing with bitflags and such.
>> Of course, I'm trained to be able to read bits in hex format, but it
>> would be nicer to see the flags as-is. Even worse when you have to
>> deal with some kind of file format where fields are N bits long,
>> where N is not a multiple of 8.
>
> so you want flags for bit order and fill order too, I assume ?
Not really, big endian covers almost everything I need.. and when it
doesn't, then I can just flip and/or pad the string accordingly.
-bob
More information about the Python-Dev
mailing list