This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients BreamoreBoy, barry, cjwatson, doko, lemburg, loewis, rhettinger
Date 2010-09-25.15:22:21
SpamBayes Score 1.9428903e-15
Marked as misclassified No
Message-id <1285428143.42.0.473203518529.issue1703592@psf.upfronthosting.co.za>
In-reply-to
Content
Certainly at a minimum, the docs should describe the exception and workaround instead of just:

"setlocale() is not thread safe on most systems. Applications typically start with a call of

    import locale
    locale.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."

+0 for a new function in Python 3.2.

For Python 2.7 though, we can't really add that new function or change the behavior of setlocale() so I'm not sure what the right thing to do is.  A documentation change is probably as good as it's going to get for Python 2.
History
Date User Action Args
2010-09-25 15:22:23barrysetrecipients: + barry, lemburg, loewis, rhettinger, doko, cjwatson, BreamoreBoy
2010-09-25 15:22:23barrysetmessageid: <1285428143.42.0.473203518529.issue1703592@psf.upfronthosting.co.za>
2010-09-25 15:22:21barrylinkissue1703592 messages
2010-09-25 15:22:21barrycreate