(category, locale=None)
return _setlocale(category, locale)
Set the locale for the given category.  The locale can be
        a string, an iterable of two strings (language code and encoding),
        or None.

        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.
Set the locale for the given category.  The locale can be
        a string, an iterable of two strings (language code and encoding),
        or None.
Set the locale for the given category . The locale can be a string an iterable of two strings ( language code and encoding ) or None .
def setlocale(category, locale=None):

    """ Set the locale for the given category.  The locale can be
        a string, an iterable of two strings (language code and encoding),
        or None.

        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.

    """
    if locale and type(locale) is not type(""):
        # convert to string
        locale = normalize(_build_localename(locale))
    return _setlocale(category, locale)
def setlocale ( category , locale = None ) : if locale and type ( locale ) is not type ( "" ) : # convert to string locale = normalize ( _build_localename ( locale ) ) return _setlocale ( category , locale )