On 18/12/2010 09:26, "Martin v. Löwis" wrote:
Comments?

How do you implement that? In particular, how do you retrieve
information for different locales in a single program?

The locale module would be able to return a named locale dict:

>>> loc = locale.getnamedlocale('en_UK')

or:

>>> loc = locale.namedlocales['en_UK']

The dict would be like what locale.localeconv() returns.

The str.format method would then be able to use that dict.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to