Thread-safe... In doc I read following: Applications typically start with a call of
import localelocale.setlocale(locale.LC_ALL, '') This sets the locale for all categories to the user’s default setting (typically specified in the LANG environment variable). If the locale is not changed thereafter, using multithreading should not cause problems. So I think it is good for me in small application where I don't need switch languages. And for enterprise application PyICU is the correct solution (which uses locale internal tables/data). On Tuesday, 14 February 2017 10:42:56 UTC+1, Mirek Zvolský wrote: > > Thanks, Hiphlod. > Does this mean that > 1) I cannot use locale module at all, > 2) I cannot switch more different locales/languages and I have to import > and set locales at some module "root" level, > 3) I cannot switch more different locales/languages, but I can set them in > model (like I do) ? > > I think 3) is True. Or 2) ? > > > > > > On Monday, 13 February 2017 08:24:57 UTC+1, Niphlod wrote: >> >> BTW: setlocale is not threadsafe. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

