[Python-3000] Allowing underscores in numeric constants.
John J Lee
jjl at pobox.com
Sat Apr 15 22:54:54 CEST 2006
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.
John
More information about the Python-3000
mailing list