Converting a Binary
mfletch at tpresence.com
Tue May 9 19:06:22 CEST 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...
From: Warren Postma [mailto:embed at geocities.com]
Sent: Tuesday, May 09, 2000 12:47 PM
To: python-list at python.org
Subject: Re: Converting a Binary
> struct.pack( 'i', yourinteger )
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