%x unsigned?

Jonathan Gardner jgardner at jonathangardner.net
Fri Mar 14 17:17:51 CET 2008


On Mar 14, 8:00 am, Hrvoje Niksic <hnik... at xemacs.org> wrote:
> The %x conversion specifier is documented inhttp://docs.python.org/lib/typesseq-strings.htmlas "Unsigned
> hexadecimal (lowercase)."  What does "unsigned" refer to?
>
> >>> '0x%x' % 10
> '0xa'

Somewhat unrelated, but have you seen the # modifier?
>>> '%#x' % 10
'0xa'



More information about the Python-list mailing list