[Python-ideas] Improve readability of long numeric literals
Joshua Landau
joshua at landau.ws
Tue Feb 9 21:18:53 EST 2016
On 10 February 2016 at 00:45, MRAB <python at mrabarnett.plus.com> wrote:
> The Ada programming language allows underscores in numerals, but requires
> there to be a digit on both sides of the underscore.
+1 to this.
Nobody's given an important use-case for any of the odd cases (doubled
or trailing underscores, or those oddly placed in floats) but there
are legitimate reasons to want groups of different sizes, especially
with non-decimal bases. Saying a digit is needed either side is both
obvious and sufficient.
More information about the Python-ideas
mailing list