Docs for MENU.regex_id.flags

[ 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


MENU.regex_id.flags.__abs__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__abs__() <==> abs(x)

MENU.regex_id.flags.__add__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__add__(y) <==> x+y

MENU.regex_id.flags.__and__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__and__(y) <==> x&y

MENU.regex_id.flags.__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

MENU.regex_id.flags.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

MENU.regex_id.flags.__coerce__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__coerce__(y) <==> coerce(x, y)

MENU.regex_id.flags.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

MENU.regex_id.flags.__div__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__div__(y) <==> x/y

MENU.regex_id.flags.__divmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__divmod__(y) <==> divmod(x, y)

MENU.regex_id.flags.__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.

MENU.regex_id.flags.__float__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__float__() <==> float(x)

MENU.regex_id.flags.__floordiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__floordiv__(y) <==> x//y

MENU.regex_id.flags.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

MENU.regex_id.flags.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

MENU.regex_id.flags.__getnewargs__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

MENU.regex_id.flags.__hash__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x)

MENU.regex_id.flags.__hex__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hex__() <==> hex(x)

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

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

MENU.regex_id.flags.__int__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__int__() <==> int(x)

MENU.regex_id.flags.__invert__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__invert__() <==> ~x

MENU.regex_id.flags.__long__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__long__() <==> long(x)

MENU.regex_id.flags.__lshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__lshift__(y) <==> x<<y

MENU.regex_id.flags.__mod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__mod__(y) <==> x%y

MENU.regex_id.flags.__mul__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__mul__(y) <==> x*y

MENU.regex_id.flags.__neg__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__neg__() <==> -x

MENU.regex_id.flags.__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

MENU.regex_id.flags.__nonzero__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__nonzero__() <==> x != 0

MENU.regex_id.flags.__oct__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__oct__() <==> oct(x)

MENU.regex_id.flags.__or__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__or__(y) <==> x|y

MENU.regex_id.flags.__pos__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__pos__() <==> +x

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

MENU.regex_id.flags.__radd__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__radd__(y) <==> y+x

MENU.regex_id.flags.__rand__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rand__(y) <==> y&x

MENU.regex_id.flags.__rdiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rdiv__(y) <==> y/x

MENU.regex_id.flags.__rdivmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rdivmod__(y) <==> divmod(y, x)

MENU.regex_id.flags.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

MENU.regex_id.flags.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

MENU.regex_id.flags.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

MENU.regex_id.flags.__rfloordiv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rfloordiv__(y) <==> y//x

MENU.regex_id.flags.__rlshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rlshift__(y) <==> y<<x

MENU.regex_id.flags.__rmod__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rmod__(y) <==> y%x

MENU.regex_id.flags.__rmul__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rmul__(y) <==> y*x

MENU.regex_id.flags.__ror__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ror__(y) <==> y|x

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

MENU.regex_id.flags.__rrshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rrshift__(y) <==> y>>x

MENU.regex_id.flags.__rshift__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rshift__(y) <==> x>>y

MENU.regex_id.flags.__rsub__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rsub__(y) <==> y-x

MENU.regex_id.flags.__rtruediv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rtruediv__(y) <==> y/x

MENU.regex_id.flags.__rxor__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__rxor__(y) <==> y^x

MENU.regex_id.flags.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

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

MENU.regex_id.flags.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

MENU.regex_id.flags.__sub__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__sub__(y) <==> x-y

MENU.regex_id.flags.__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).

MENU.regex_id.flags.__truediv__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__truediv__(y) <==> x/y

MENU.regex_id.flags.__trunc__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Truncating an Integral returns itself.

MENU.regex_id.flags.__xor__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__xor__(y) <==> x^y

MENU.regex_id.flags.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

MENU.regex_id.flags.conjugate <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Returns self, the complex conjugate of any int.

MENU.regex_id.flags.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

MENU.regex_id.flags.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

MENU.regex_id.flags.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

MENU.regex_id.flags.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