Reading file bit by bit

Ulrich Eckhardt eckhardt at satorlaser.com
Mon Jun 7 07:57:42 EDT 2010


Peter Otten wrote:
> Ulrich Eckhardt wrote:
>> 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'

Argh! Of course one of my Pythons says '0b11000000' and not what I mistyped
above.... =(

Uli
*goes and hides under a stone*

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




More information about the Python-list mailing list