[Python-Dev] Unclear on the way forward with unsigned integers
Martin v. Loewis
martin@v.loewis.de
07 Oct 2002 17:02:46 +0200
Tim Peters <tim.one@comcast.net> writes:
> The result of that is also currently platform-dependent, so you need to say
> what you mean in a platform-independent way. It's likely that you meant
>
> hex(-1 & 0xffffffffL)
>
> or, more directly,
>
> hex(0xffffffffL)
>
> but that someone on a 64-bit box meant something other than that.
Alternatively, if he really means what hex(-1) will mean in the
future, he should really write hex(-1L), or, if -1 is a variable,
hex(long(-1)).
Regards,
Martin