March 2003
Intermediate to advanced
656 pages
39h 30m
English
setlocale
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.
Read now
Unlock full access