Concatenated numerical literals

Per Erik Stendahl berra at psyket.com
Mon Mar 1 10:24:01 EST 2004


Hi,

I wish I could write large integers (and floats, etc) like
this in Python:

     10 000 000

Kind of the same way I can write string literals today.
(As in 'This' 'is' 'one' 'string'.)

Has there been any discussion on this? I find myself wishing
for this at least once a week, since it really helps readability.
It doesn't seem like a big implementation either.

Any comments?

Regards,
Per Erik Stendahl,
Uppsala, Sweden




More information about the Python-list mailing list