Rough draft: Proposed format specifier for a thousands separator
Raymond Hettinger
python at rcn.com
Fri Mar 13 17:11:06 EDT 2009
> > The separators can be any one of COMMA,
> > SPACE, DOT, UNDERSCORE, or NON-BREAKING-SPACE.
>
> What if I want other separators?
format(n, ',d').replace(",", yoursep)
> How about this idea: make the format has "long" format, which is a bit
> more verbose, flexible, and unambiguous, and the current proposal a
> "short" format, which is more concise.
>
> The "long" format would be like this (this is much, much more featureful
> than the current proposition, I think I might have crossed far beyond
> the Mayan line):
I concur ;-)
Raymond
More information about the Python-list
mailing list