mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #3067: Enhance the documentation and docstring of locale.setlocale()
This commit is contained in:
parent
8c482ee955
commit
395ca72380
3 changed files with 14 additions and 12 deletions
|
@ -526,9 +526,10 @@ def getlocale(category=LC_CTYPE):
|
|||
def setlocale(category, locale=None):
|
||||
|
||||
""" Set the locale for the given category. The locale can be
|
||||
a string, a locale tuple (language code, encoding), or None.
|
||||
a string, an iterable of two strings (language code and encoding),
|
||||
or None.
|
||||
|
||||
Locale tuples are converted to strings the locale aliasing
|
||||
Iterables are converted to strings using the locale aliasing
|
||||
engine. Locale strings are passed directly to the C lib.
|
||||
|
||||
category may be given as one of the LC_* values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue