[Python-ideas] 1_000_000

Eric Smith eric at trueblade.com
Sat May 7 21:51:36 CEST 2011


On 05/06/2011 11:45 PM, Guido van Rossum wrote:

> It would also be nice to have an easy way to emit _ in suitable
> places. Maybe this could be added to the .format() language for
> numbers? It would be nice if you could tell it to emit an _ every N
> positions.

We already support commas (PEP 378). Adding underscores in the same way
would be easy. However, you can't specify N, it's always 3.

Eric.




More information about the Python-ideas mailing list