LC_MONETARY formatting
"Martin v. Löwis"
martin at v.loewis.de
Sat Jan 10 10:42:05 EST 2004
Colin Fox wrote:
> I can't believe that I'm the first person who ever wanted to print a
> number as a currency value. Why go to the great lengths of what's provided
> in localeconv(), only to leave it up to every single programmer to
> re-implement the solution? What a waste of time and effort!
As Serge points out, C has strfmon. For Python, better start believing
that you are the first person who ever wanted to print a number as a
currency value in a locale-dependent way.
Feel free to contribute patches if you think this should be provided
out of the box.
Regards,
Martin
More information about the Python-list
mailing list