how to preserve hex value

member thudfoo thudfoo at opensuse.us
Wed May 19 15:01:27 EDT 2010


On Wed, May 19, 2010 at 11:38 AM, Back9 <backgoodoo at gmail.com> wrote:
> Hi,
>
> When converting a hex value, I'd like to preserve the decimal
> position.
> For example, 0x0A is converted to 0A not just A in string.
>
> How do I do this?
>
> TIA
> --
> http://mail.python.org/mailman/listinfo/python-list
>
|109> '%02X' % 10
<109> '0A'



More information about the Python-list mailing list