Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/locale.html
Дата изменения: Thu Nov 5 13:46:16 2015
Дата индексирования: Sun Apr 10 20:08:57 2016
Кодировка:

Поисковые слова: trifid nebula
Python: module locale
 
 
locale
index
/usr/local/Python-2.5/lib/python2.5/locale.py
Module Docs

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
       
encodings
operator
re
sys

 
Classes
       
exceptions.Exception(exceptions.BaseException)
Error

 
class Error(exceptions.Exception)
    
Method resolution order:
Error
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x2096c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
Functions
       
atof(string, func=<type 'float'>)
Parses a string as a float according to the locale settings.
atoi(str)
Converts a string to an integer according to the locale settings.
format(percent, value, grouping=False, monetary=False, *additional)
Returns the locale-aware substitution of a %? specifier
(percent).
 
additional is for format strings which contain one or more
'*' modifiers.
localeconv(...)
() -> dict. Returns numeric and monetary locale-specific parameters.
setlocale(category, locale=None)
Set the locale for the given category.  The locale can be
a string, a locale tuple (language code, encoding), or None.
 
Locale tuples are converted to strings the locale aliasing
engine.  Locale strings are passed directly to the C lib.
 
category may be given as one of the LC_* values.
str(val)
Convert float to integer, taking the locale into account.
strcoll(...)
string,string -> int. Compares two strings according to the locale.
strxfrm(...)
string -> string. Returns a string that behaves for cmp locale-aware.

 
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']