Re: printing longs

2007-04-06 Thread John Machin
On Apr 7, 7:54 am, "garyp" <[EMAIL PROTECTED]> wrote: > Python 2.3.4 (#1, Oct 26 2004, 16:42:40) > [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 > > >>> x = int("8000", 16) > >>> x = x | 0x8000 > > :1: FutureWarning: hex/oct constants > sys.maxint will return > positive values in Pyt

printing longs

2007-04-06 Thread garyp
Python 2.3.4 (#1, Oct 26 2004, 16:42:40) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 >>> x = int("8000", 16) >>> x = x | 0x8000 :1: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up >>> print "%x" % ( x ) -8000 >>> How do I get p