On Wed, 15 Dec 2004 20:40:40 -0500, R. Alan Monroe
<[EMAIL PROTECTED]> wrote:
> > print "0x%0X" % 12345
> 
> > displays
> > 0x3039
> 
> > instead of 0x03039
> 
> 
> >>> "%05x" % (12345,)
> '03039'
> 
> >>> "0x%05x" % (12345,)
> '0x03039'
> 
> _______________________________________________
> Tutor maillist  -  [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/tutor
> 

My mistake . . . the "." I entered was unnecessary.

-- 
Email: singingxduck AT gmail DOT com
AIM: singingxduck
Programming Python for the fun of it.
_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to