[Python-Dev] Octal literals
"Martin v. Löwis"
martin at v.loewis.de
Thu Feb 2 23:46:00 CET 2006
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.
Regards,
Martin
More information about the Python-Dev
mailing list