Numeric literal syntax (was: Py 2.6 changes)

Nick Craig-Wood nick at
Tue Sep 2 13:35:41 CEST 2008

bearophileHUGS at <bearophileHUGS at> wrote:
>  Ben Finney:
> > I don't see any good reason (other than your familiarity with the D
> > language) to use underscores for this purpose, and much more reason
> > (readability, consistency, fewer arbitrary differences in syntax,
> > perhaps simpler implementation) to use whitespace just as with string
> > literals.
>  It's not just my familiarity, Ada language too uses underscore for
>  that purpose, I think, so there's a precedent, and Ada is a language
>  designed to always minimize programming errors, simple code mistakes
>  too.

And perl also

Nick Craig-Wood <nick at> --

More information about the Python-list mailing list