binary number format ? format character %b or similar.

Ken Starks straton at lampsacos.demon.co.uk
Mon Jun 23 10:59:41 CEST 2008


Mensanator wrote:
> On Jun 22, 4:07�pm, Ken Starks <stra... at lampsacos.demon.co.uk> wrote:
>> weheh wrote:
>>> I don't know if you found this example:
>>> http://www.daniweb.com/code/snippet285.html
>> Thanks for that. The offerings are very similar to the
>> algorithms I wrote myself.
>>
>> It wasn't the solution I was after,really; that's
>> easy. It was whether anything had found its way into
>> the standard library.
> 
> Isn't that coming in Python 3.0?

Thanks for the tip! following which, I found
information at:

http://docs.python.org/dev/3.0/library/string.html#formatstrings

> 
> You could also use gmpy, which has a lot of
> other bit-functionality in addition to displaying
> them.
> 

Yes, that'll be useful. Thanks again.



More information about the Python-list mailing list