Converting a Binary

Mike Fletcher mfletch at
Tue May 9 13:06:22 EDT 2000

Yes, and considering how often this question comes up, I'm a bit embarrassed
not to have thought of that interpretation in my explanation.

Ah well, to err is human, the bots' divine and all that...

-----Original Message-----
From: Warren Postma [mailto:embed at]
Sent: Tuesday, May 09, 2000 12:47 PM
To: python-list at
Subject: Re: Converting a Binary

> struct.pack( 'i', yourinteger )
> Enjoy,
> Mike

Interesting how ambiguous "convert to binary is". I assumed he meant "print
an integer variable as a base-2 (binary) string representation". ;-)



More information about the Python-list mailing list