Hi,
If I try to print a negative integer as a hexadecimal, I get the
following error:
FutureWarning: %u/%o/%x/%X of negative int will return a signed string
in Python 2.4 and up
For example:[color=blue][color=green][color=darkred]
>>> print "%X" % -1[/color][/color][/color]
__main__:1: FutureWarning: %u/%o/%x/%X of negative int will return a
signed string in Python 2.4 and up
FFFFFFFF
Does that mean that in the future it will say -1 or -FFFFFFFF? Also,
how do I suppress this warning?
Thanks,
Brian
If I try to print a negative integer as a hexadecimal, I get the
following error:
FutureWarning: %u/%o/%x/%X of negative int will return a signed string
in Python 2.4 and up
For example:[color=blue][color=green][color=darkred]
>>> print "%X" % -1[/color][/color][/color]
__main__:1: FutureWarning: %u/%o/%x/%X of negative int will return a
signed string in Python 2.4 and up
FFFFFFFF
Does that mean that in the future it will say -1 or -FFFFFFFF? Also,
how do I suppress this warning?
Thanks,
Brian
Comment