Movatterモバイル変換
[0]ホーム
[Python-Dev] Unclear on the way forward with unsigned integers
Martin v. Loewismartin@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 thefuture, he should really write hex(-1L), or, if -1 is a variable,hex(long(-1)).Regards,Martin
[8]ページ先頭