| locale | index /usr/lib/python2.1/locale.py |
Locale support.
The module provides low-level access to the C lib's locale APIs
and adds high level number formatting APIs as well as a locale
aliasing engine to complement these.
The aliasing engine includes support for many commonly used locale
names and maps them to values suitable for passing to the C lib's
setlocale() function. It also includes default encodings for all
supported locale names.
| Modules | ||||||
| ||||||
| Classes | ||||||||||
| ||||||||||
| Functions | ||
| ||
| Data | ||
| CHAR_MAX = 127 LC_ALL = 6 LC_COLLATE = 3 LC_CTYPE = 0 LC_MESSAGES = 5 LC_MONETARY = 4 LC_NUMERIC = 1 LC_TIME = 2 __all__ = ['setlocale', 'Error', 'localeconv', 'strcoll', 'strxfrm', 'format', 'str', 'atof', 'atoi', 'LC_CTYPE', 'LC_COLLATE', 'LC_TIME', 'LC_MONETARY', 'LC_NUMERIC', 'LC_ALL', 'CHAR_MAX', 'LC_MESSAGES'] __file__ = '/usr/lib/python2.1/locale.pyc' __name__ = 'locale' encoding_alias = {'437': 'C', '8859': 'ISO8859-1', '88591': 'ISO8859-1', '885915': 'ISO8859-15', 'ajec': 'eucJP', 'ascii': 'ISO8859-1', 'c': 'C', 'en': 'ISO8859-1', 'eucjp': 'eucJP', 'iso-2022-jp': 'JIS7', ...} locale_alias = {'american': 'en_US.ISO8859-1', 'ar': 'ar_AA.ISO8859-6', 'ar_aa': 'ar_AA.ISO8859-6', 'ar_sa': 'ar_SA.ISO8859-6', 'arabic': 'ar_AA.ISO8859-6', 'bg': 'bg_BG.ISO8859-5', 'bg_bg': 'bg_BG.ISO8859-5', 'bulgarian': 'bg_BG.ISO8859-5', 'c': 'C', 'c-french': 'fr_CA.ISO8859-1', ...} windows_locale = {1028: 'zh_TW', 1030: 'da_DK', 1031: 'de_DE', 1032: 'el_GR', 1033: 'en_US', 1035: 'fi_FI', 1036: 'fr_FR', 1037: 'iw_IL', 1039: 'is_IS', 1040: 'it_IT', ...} | ||