[Python-Dev] Negated hex/oct constants (SF #660455) (original) (raw)

Tim Peters tim_one@email.msn.com
Wed, 5 Feb 2003 21:56:51 -0500


Ooh! We can't blame this one on the peephole opt, right? In current CVS:

-int("0xffffffff", 0) # and this does not generate a wng 1 int("-0xffffffff", 0) -4294967295L

As in the tail end of the last msg, the base specifier makes a big difference here too:

-int("ffffffff", 16) -4294967295L int("-ffffffff", 16) -4294967295L