Name
setlocale
Synopsis
setlocale(category
,locale
=None)
Sets the locale for category
to the given
locale
, if not None
,
and returns the setting (the existing one when
locale
is None
;
otherwise, the new one). locale
can be a
string, or a pair of strings
(
lang
,encoding
)
.
When locale
is the empty string
'', setlocale
sets the
user’s default locale.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.