converting to a binary number?

Kent Johnson kent at
Fri Mar 24 21:57:50 CET 2006

John Salerno wrote:
> I'm having some trouble finding a function that converts numbers 
> (whether integer, hex, whatever) to its binary representation. Is there one?

You might like this recipe:


More information about the Python-list mailing list