[Python-Dev] Locale-specific formatting
python at mrabarnett.plus.com
Sun Dec 19 02:11:36 CET 2010
On 19/12/2010 00:31, "Martin v. Löwis" wrote:
> Am 18.12.2010 19:26, schrieb MRAB:
>> On 18/12/2010 09:26, "Martin v. Löwis" wrote:
>>> 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')
> Ok, so, in turn: how do you implement *that* (what C API
> specifically do you use to implement that getnamedlocale function)?
I suppose there could be some sort of locale database. A downloadable,
up-to-date copy of the database could be maintained on the Python
More information about the Python-Dev