%x unsigned?

Hrvoje Niksic hniksic at xemacs.org
Fri Mar 14 11:00:07 EDT 2008


The %x conversion specifier is documented in
http://docs.python.org/lib/typesseq-strings.html as "Unsigned
hexadecimal (lowercase)."  What does "unsigned" refer to?

>>> '0x%x' % 10
'0xa'
>>> '0x%x' % -10
'0x-a'

Is this a bug or is %x misdocumented?



More information about the Python-list mailing list