Reading file bit by bit
Peter Otten
__peter__ at web.de
Mon Jun 7 07:43:58 EDT 2010
Ulrich Eckhardt wrote:
> Nobody wrote:
>> On Mon, 07 Jun 2010 02:31:08 -0700, Richard Thomas wrote:
>>
>>> You're reading those bits backwards. You want to read the most
>>> significant bit of each byte first...
>>
>> Says who?
>
> Says Python:
>
>>>> bin(192)
> '0x11000000'
Hmm, if that's what /your/ Python says, here's mine to counter:
>>> bin(192)
'0_totally_faked_binary_00000011'
;)
Peter
More information about the Python-list
mailing list