(category=LC_CTYPE)
return _parse_localename(localename)
Returns the current setting for the given locale category as
        tuple (language code, encoding).

        category may be one of the LC_* value except LC_ALL. It
        defaults to LC_CTYPE.

        Except for the code 'C', the language code corresponds to RFC
        1766.  code and encoding can be None in case the values cannot
        be determined.
Returns the current setting for the given locale category as
        tuple (language code, encoding).
Returns the current setting for the given locale category as tuple ( language code encoding ) .
def getlocale(category=LC_CTYPE):

    """ Returns the current setting for the given locale category as
        tuple (language code, encoding).

        category may be one of the LC_* value except LC_ALL. It
        defaults to LC_CTYPE.

        Except for the code 'C', the language code corresponds to RFC
        1766.  code and encoding can be None in case the values cannot
        be determined.

    """
    localename = _setlocale(category)
    if category == LC_ALL and ';' in localename:
        raise TypeError, 'category LC_ALL is not supported'
    return _parse_localename(localename)
def getlocale ( category = LC_CTYPE ) : localename = _setlocale ( category ) if category == LC_ALL and ';' in localename : raise TypeError , 'category LC_ALL is not supported' return _parse_localename ( localename )