Re: locale.setlocale problems

From: Ksenia Marasanova (ksenia_at_ksenia.nl)
Date: 10/02/04


Date: Sat, 02 Oct 2004 11:26:47 +0200
To: python-list@python.org


> Python relies on the operating system here, so please bring
> this up with your OS vendor.

Okay, I got it now. Thanks for the explanation.

>> And the last question: when I change locale in a Python application,
>> it affects only the current namespace, right? I hope so... :)
>
> Not sure what a namespace is, in this context, but I guess the answer
> is
> "yes".

With 'namespace' I meant only the module when the locale is changed, so
it not affects other scripts that run at the same time on the system. I
misunderstood locale as being some system-wide 'registry' which
remembers the changes in it. (have some vague, bad memories about
changing locale in an ASP application... :-)

Thank you,
Ksenia.



Relevant Pages

  • Re: localisation of my program
    ... namespace. ... it allows you to change the locale of current thread. ... after changing this you can create labeles and button title in our own ... language. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to examine tokens?
    ... >Okay, there are a couple of faults with this (for a start, it assumes ... alphabetic characters in the current locale (if you are using anything ...
    (alt.comp.lang.learn.c-cpp)
  • Re: locale.setlocale problems
    ... > locale.Error: locale setting not supported ... FreeBSD is very strict for locale names. ... > With 'namespace' I meant only the module when the locale is changed, ...
    (comp.lang.python)