Underscores in Python numbers

Stefan Rank stefan.rank at ofai.at
Sat Nov 19 10:01:34 CET 2005

on 19.11.2005 06:56 Steven D'Aprano said the following:
> Perhaps Python should concatenate numeric literals at compile time:
> 123 456 is the same as 123456.
> Off the top of my head, I don't think this should break any older code,
> because 123 456 is not currently legal in Python.


but only allow (a single ?) space(s), otherwise readability issues ensue.

The other idea of teaching int() about separator characters has 
internationalis/zation issues:
In many European countries, one would naturally try::


instead of::



More information about the Python-list mailing list