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

Tim Peters tim.one@comcast.net
Wed, 14 Aug 2002 01:16:58 -0400

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

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

> what is? "0x950412deL"?

That's what my gettext.py patch did (along with using 'I' codes in unpack,
and getting rid of all the "& MASK" fiddling) -- check it out, it's already
assigned to you for your convenience <wink>.)

> If so, what happens when the trailing-L becomes illegal?

I think that's more of a Python 3 thing.  But if not:

> Seems like I'll be caught in a trap -- help me out! :)

Easy:  we take the trailing-L away again someday <heh>.  My bet is that
trailing-L will never go away, though (why bother?).