[Python-3000] Allowing underscores in numeric constants.
Ian D. Bollinger
ian.bollinger at gmail.com
Sun Apr 16 00:24:58 CEST 2006
John J Lee wrote:
> On Fri, 14 Apr 2006, Ian D. Bollinger wrote:
>
>
>> Personally I like the idea (stolen from Perl, and others) of allowing
>> underscores in numbers as to group digits, for instance:
>> one_million = 1_000_000
>> maximum = 0xFF_FF_FF_FF
>>
>> Once four or more identical digits appear in a row, I find a number
>> starts to become unwieldy, and separators would be a useful visual aid.
>>
>
> This was discussed at length on python-dev not long ago.
>
>
To my my knowledge this was discussed on c.l.p, not python-dev, and
there appeared to be little consensus as to whether it would be a good
idea or not.
-- Ian D. Bollinger
More information about the Python-3000
mailing list