Annoying octal notation
MRAB
python at mrabarnett.plus.com
Sat Aug 22 08:55:42 EDT 2009
David wrote:
> Il Fri, 21 Aug 2009 16:52:29 -0700 (PDT), James Harris ha scritto:
>
>
>> 0xff & 0x0e | 0b1101
>> 16rff & 16r0e | 2r1101
>>
>> Hmm. Maybe a symbol would be better than a letter.
>
> What about 2_1011, 8_7621, 16_c26h or 2;1011, 8;7621, 16;c26h ?
>
'_': what if in the future we want to allow them in numbers for clarity?
';': used to separate multiple statements on a line (but not used that
often).
More information about the Python-list
mailing list