Integer to Binary string

William Park opengeometry at yahoo.ca
Fri Dec 6 12:38:44 EST 2002


srijit at yahoo.com wrote:
> I would like to know the most efficient Pythonic way to convert an
> integer to a binary string. Any suggestions?
> Is there any Python function similar to _itoa?

int -> hex -> bin

15 -> hex(15) -> Search Google.  I've seen it posted.

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution for data management and processing. 



More information about the Python-list mailing list