Disagree with proposed 2.4 behavior for %x formatting of signed i nts
"Martin v. Löwis"
martin at v.loewis.de
Tue Sep 9 14:11:09 EDT 2003
Tim Roberts wrote:
> You do not understand correctly. This is what will happen:
>
>
>>>>print "0x%08X" % -1041053949
>
> 0x-3E0D38FD
Actually, what *will* happen is
-0x3E0D38FD
> I've started three different times to post a message complaining that the
> changes in 2.3 and the changes proposed in 2.4 are taking Python farther
> and farther away from the cool system-level binary manipulation tool I
> often use it for, but every time I get part way through it, I realize that
> the changes do make sense from a consistency point of view, and that it
> doesn't take that much more work to do it "right".
Indeed. You can still do all binary manipulations that you want to do.
Regards,
Martin
More information about the Python-list
mailing list