On 08 Nov 2005 08:07:34 -0800, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
>"dcrespo" <[EMAIL PROTECTED]> writes: >> >>>hex(255)[2:] >> 'ff' > >'%x'%255 is preferable since the format of hex() output can vary. Try >hex(33**33). Not to mention ([EMAIL PROTECTED] deleted ;-) >>> hex(-255)[2:] 'xff' >>> hex(-255) '-0xff' >>> hex(-255&0xff) '0x1' Regards, Bengt Richter -- http://mail.python.org/mailman/listinfo/python-list