Re: a 32 bit number to integer

2006-01-24 Thread Dave Hansen
On Tue, 24 Jan 2006 13:23:05 -0300 in comp.lang.python, Ricardo Quesada <[EMAIL PROTECTED]> wrote: >Hi, > > In python 2.0, this number was an integer: >0x88776655 > > but in python 2.4 it is a long (every number > 0x7fff it is a long) > >in python 2.4, is there a way to convert that numb

Re: a 32 bit number to integer

2006-01-24 Thread Paul Rubin
Ricardo Quesada <[EMAIL PROTECTED]> writes: > 0x88776655 > > but in python 2.4 it is a long (every number > 0x7fff it is a long) > > in python 2.4, is there a way to convert that number to a integer > (notice that it only occupies 32 bits) ? It would be -2005440939 but that's maybe not