Docs for IS_IPV4.localhost

[ 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


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

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

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

IS_IPV4.localhost.__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

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

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

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

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

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

IS_IPV4.localhost.__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.

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

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

IS_IPV4.localhost.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

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

IS_IPV4.localhost.__getnewargs__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

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

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

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

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

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

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

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

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

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

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

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

IS_IPV4.localhost.__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

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

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

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

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

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

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

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

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

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

IS_IPV4.localhost.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

IS_IPV4.localhost.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

IS_IPV4.localhost.__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).

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

IS_IPV4.localhost.__trunc__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Truncating an Integral returns itself.

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

IS_IPV4.localhost.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

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

IS_IPV4.localhost.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

IS_IPV4.localhost.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

IS_IPV4.localhost.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

IS_IPV4.localhost.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