Re: Future Warning with Negative Int

2006-04-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: > If I try to print a negative integer as a hexadecimal, I get the > following error: print "%X" % -1 > __main__:1: FutureWarning: %u/%o/%x/%X of negative int will return a > signed string in Python 2.4 and up > > > Does that mean that in the future it will

Future Warning with Negative Int

2006-04-14 Thread brianlum
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: >>> print "%X" % -1 __main__:1: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in