Reading file bit by bit

Ulrich Eckhardt eckhardt at satorlaser.com
Mon Jun 7 07:20:06 EDT 2010


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'

That said, I totally agree that there is no inherently right way and I guess
Richard was just a smiley or two short in order to have correct markup in
his not-so-serious posting.

:^)

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list