[Python-Dev] Octal literals (original) (raw)

Bengt Richter bokr at oz.net
Fri Feb 3 01:08:18 CET 2006


On Thu, 02 Feb 2006 23:46:00 +0100, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <martin at v.loewis.de> wrote:

Bengt Richter wrote:

[1] To reduce all this eye-glazing discussion to a simple example, how do people now use hex notation to define an integer bit-mask constant with bits ^^^^^^^

31 and 2 set? | | That's easy: | 0x80000004 | >>> 0x80000004 | 2147483652L | ^------------------------' That didn't meet specs ;-) It sure does: 2147483652L is an integer (a long one); it isn't an int. Aw, shux, dang. I didn't say what I meant ;-/ Apologies to James & all 'round. s/integer/int/ in the above.

Regards, Bengt Richter



More information about the Python-Dev mailing list