[Python-checkins] r64952 - peps/trunk/pep-3101.txt

Raymond Hettinger python at rcn.com
Mon Jul 14 19:06:48 CEST 2008


>> I would *really* like to see some way to specify a thousands separator.  Going through the locale module is a pita for this 
>> common need.
>
> Use the 'n' formatter. Admittedly, you have to have already set the correct locale.

Would it be too much to have a non-locale version so you could specify commas, dots, spaces, underscores, squiggles, etc.? 
Financial users of Python despair at the difficulties in formatting with separators.


Raymond



More information about the Python-checkins mailing list