Underscores in Python numbers
Micah Elliott
mde at micah.elliott.name
Mon Nov 21 10:51:28 EST 2005
On Nov 19, Steven D'Aprano wrote:
> Perhaps Python should concatenate numeric literals at compile time:
>
> 123 456 is the same as 123456.
+1 for readability.
But in support of no change, When was the last time you looked at long
sequences of python digits outside of your editor/IDE? You probably
don't deal with them interactively (and if you do you probably paste
them in).
So reasonable editors could just color groups differently. E.g.:
123456789012345
^ ^ ^
red blue red
--
_ _ ___
|V|icah |- lliott <>< mde at micah.elliott.name
" " """
More information about the Python-list
mailing list