Reading file bit by bit

Ulrich Eckhardt eckhardt at satorlaser.com
Mon Jun 7 08:54:04 EDT 2010


superpollo wrote:
> mine goes like this:
> 
>  >>> bin(192)
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
> NameError: name 'bin' is not defined

Yep, one of mine, too. The "bin" function was new in 2.6, as were binary
number literals ("0b1100").

Uli

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




More information about the Python-list mailing list