Ian Bicking: the old part of his blog


yes, but that's already defined in the C locale library. I'm not after the $ sign necessarily, I'm just after my number being 1.024,67 and (-1.345,88) or whatever. In some locales, by convention normal numbers don't have thousands separators, whereas currency numbers do. I'd rather not have to sepcifically code that into my app, which is what I have to currently do. Look at what the LC_MONETARY dict currently provides in the locale module, most of your problems are already solved there.

As for the position of the € sign, even people in spain can't agree whether it comes before or after the number. So I don't see why the locale library should include it. Also, keep in mind that a currency symbol might be a string, after all, until last year, our currency symbol was "Ptas".
Comment on % interpolation
by Moof