> 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

Reply via email to