[Python-checkins] r64952 - peps/trunk/pep-3101.txt
Eric Smith
eric+python-dev at trueblade.com
Tue Jul 15 19:34:51 CEST 2008
Fred Drake wrote:
> On Tue, Jul 15, 2008 at 1:13 PM, Guido van Rossum <guido at python.org> wrote:
>> confuse the heck out of anybody in Europe. So maybe having to go
>> through the locale module is *good* here for a change. (At least
>> moderately good. It shouldn't have to be global state, it should be a
>> settable per thread or per web request context.)
>
> Being able to use multiple locales at a time is also a use case,
> especially for web applications, and I don't think the locale module
> supports that.
>
> There should be a way to take appropriate locale data from whatever
> source and apply that to specific formatting operations.
>
> I'm not sufficiently knowledgeble to propose a reasonable API for this.
Me, either. But that won't stop me!
I was thinking something along the lines of either:
add_grouping(str, locale_name)
or:
add_grouping(str, separator=',', grouping=[3, 0])
Or, maybe provide both (with better names, of course, and maybe a method
on strings).
Eric.
More information about the Python-checkins
mailing list