[Python-ideas] Rough draft: Proposed format specifier for a thousands separator (discussion moved from python-dev)

spir denis.spir at free.fr
Fri Mar 13 12:05:25 CET 2009

Le Thu, 12 Mar 2009 23:50:17 -0400,
Jim Jewett <jimjjewett at gmail.com> s'exprima ainsi:

> Why not?  You'll need *some* default for decimal_point, and the one
> from localeconv makes at least as much sense as a hard-coded default.
> I agree that it shouldn't *change* anything in the locale, and any
> keywords explicitly passed in should override locale, but if it never
> looks at locale, you'll get patterns like

I think this makes much sense. Actually, there may be a principle similar to 'cascade overriding' in CSS sheets: the last one who speaks wins. In the case of number formatting, this could be eg a cascade of:

locale format --> coded format --> end-user config format

la vita e estrany

More information about the Python-ideas mailing list