Docs for T.nplurals

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'int'>















int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given. If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base. The
literal can be preceded by '+' or '-' and be surrounded by whitespace.
The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
interpret the base from the string as an integer literal.
>>>
int('0b100', base=0)
4


Attributes


T.nplurals.__abs__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__abs__() <==> abs(x)

T.nplurals.__add__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__add__(y) <==> x+y

T.nplurals.__and__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__and__(y) <==> x&y

T.nplurals.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

T.nplurals.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

T.nplurals.__coerce__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__coerce__(y) <==> coerce(x, y)

T.nplurals.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

T.nplurals.__div__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__div__(y) <==> x/y

T.nplurals.__divmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__divmod__(y) <==> divmod(x, y)

T.nplurals.__doc__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

T.nplurals.__float__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__float__() <==> float(x)

T.nplurals.__floordiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__floordiv__(y) <==> x//y

T.nplurals.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

T.nplurals.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

T.nplurals.__getnewargs__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

T.nplurals.__hash__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x)

T.nplurals.__hex__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hex__() <==> hex(x)

T.nplurals.__index__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x[y:z] <==> x[y.__index__():z.__index__()]

T.nplurals.__init__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see help(type(x)) for signature

T.nplurals.__int__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__int__() <==> int(x)

T.nplurals.__invert__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__invert__() <==> ~x

T.nplurals.__long__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__long__() <==> long(x)

T.nplurals.__lshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__lshift__(y) <==> x<<y

T.nplurals.__mod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__mod__(y) <==> x%y

T.nplurals.__mul__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__mul__(y) <==> x*y

T.nplurals.__neg__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__neg__() <==> -x

T.nplurals.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

T.nplurals.__nonzero__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__nonzero__() <==> x != 0

T.nplurals.__oct__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__oct__() <==> oct(x)

T.nplurals.__or__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__or__(y) <==> x|y

T.nplurals.__pos__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__pos__() <==> +x

T.nplurals.__pow__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__pow__(y[, z]) <==> pow(x, y[, z])

T.nplurals.__radd__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__radd__(y) <==> y+x

T.nplurals.__rand__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rand__(y) <==> y&x

T.nplurals.__rdiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rdiv__(y) <==> y/x

T.nplurals.__rdivmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rdivmod__(y) <==> divmod(y, x)

T.nplurals.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

T.nplurals.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

T.nplurals.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

T.nplurals.__rfloordiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rfloordiv__(y) <==> y//x

T.nplurals.__rlshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rlshift__(y) <==> y<<x

T.nplurals.__rmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rmod__(y) <==> y%x

T.nplurals.__rmul__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rmul__(y) <==> y*x

T.nplurals.__ror__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ror__(y) <==> y|x

T.nplurals.__rpow__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
y.__rpow__(x[, z]) <==> pow(x, y[, z])

T.nplurals.__rrshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rrshift__(y) <==> y>>x

T.nplurals.__rshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rshift__(y) <==> x>>y

T.nplurals.__rsub__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rsub__(y) <==> y-x

T.nplurals.__rtruediv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rtruediv__(y) <==> y/x

T.nplurals.__rxor__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rxor__(y) <==> y^x

T.nplurals.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

T.nplurals.__sizeof__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
__sizeof__() -> int size of object in memory, in bytes

T.nplurals.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

T.nplurals.__sub__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__sub__(y) <==> x-y

T.nplurals.__subclasshook__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

T.nplurals.__truediv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__truediv__(y) <==> x/y

T.nplurals.__trunc__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Truncating an Integral returns itself.

T.nplurals.__xor__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__xor__(y) <==> x^y

T.nplurals.bit_length <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
int.bit_length() -> int Number of bits necessary to represent self in binary. >>> bin(37) '0b100101' >>> (37).bit_length() 6

T.nplurals.conjugate <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Returns self, the complex conjugate of any int.

T.nplurals.denominator <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

T.nplurals.imag <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

T.nplurals.numerator <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

T.nplurals.real <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4