PyDocs

Nav

Internationalization

getlocale

locale

function (source)
  • 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.
Changed in 3.15
  • 3.15: @-modifier are no longer silently removed, but included in the language code.
0 Examples
No examples for locale/getlocale.
See Also
No see-alsos for locale/getlocale
0 Notes
No notes for getlocale