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)

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 )
returns the current setting for the given locale category as tuple .