[Python-Dev] hex constants, bit patterns, PEP 237 warnings and gettext

Barry A. Warsaw barry@zope.com
Wed, 14 Aug 2002 08:02:30 -0400

>>>>> "TP" == Tim Peters <tim.one@comcast.net> writes:

    TP> [Barry A. Warsaw]
    >> ...  So if "0x950412de" isn't the right way to write a 32 bit
    >> pattern,

    TP> It isn't today, but will be in 2.4.

But isn't that wasteful?  Today I have to add the L to my hex
constants, but in a year from now, I can just turn around and remove
them again.  What's the point?

The deeper question is: what's wrong with "0x950412de"?  What bits
have I lost by writing my hex constant this way?  I'm trying to
understand why hex constants > sys.maxint have to deprecated.