Converting a Binary
Mike Fletcher
mfletch at tpresence.com
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...
Mike
-----Original Message-----
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 )
>
> Enjoy,
> Mike
Interesting how ambiguous "convert to binary is". I assumed he meant "print
an integer variable as a base-2 (binary) string representation". ;-)
Warren
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list