parameters: (category=LC_CTYPE)
return_statement: return _parse_localename(localename)
docstring: 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.
docstring_summary: Returns the current setting for the given locale category as
          tuple (language code, encoding).
docstring_tokens: Returns the current setting for the given locale category as tuple ( language code encoding ) .
function: 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)
function_tokens: 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 )