| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
int
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string. If the argument is outside the integer range a long object will be returned instead.
|
|||
|
__abs__(x) abs(x) |
|||
|
__add__(x,
y) x+y |
|||
|
__and__(x,
y) x&y |
|||
|
__cmp__(x,
y) cmp(x,y) |
|||
|
__coerce__(x,
y) coerce(x, y) |
|||
|
__div__(x,
y) x/y |
|||
|
__divmod__(x,
y) xdivmod(x, y)y |
|||
|
__float__(x) float(x) |
|||
|
__floordiv__(x,
y) x//y |
|||
|
__getattribute__(...) x.__getattribute__('name') <==> x.name |
|||
| __getnewargs__(...) | |||
|
__hash__(x) hash(x) |
|||
|
__hex__(x) hex(x) |
|||
|
__int__(x) int(x) |
|||
|
__invert__(x) ~x |
|||
|
__long__(x) long(x) |
|||
|
__lshift__(x,
y) x<<y |
|||
|
__mod__(x,
y) x%y |
|||
|
__mul__(x,
y) x*y |
|||
|
__neg__(x) -x |
|||
|
__new__(T,
S,
...) Returns a new object with type S, a subtype of T... |
|||
|
__nonzero__(x) x != 0 |
|||
|
__oct__(x) oct(x) |
|||
|
__or__(x,
y) x|y |
|||
|
__pos__(x) +x |
|||
|
__pow__(x,
y,
z=...) pow(x, y[, z]) |
|||
|
__radd__(x,
y) y+x |
|||
|
__rand__(x,
y) y&x |
|||
|
__rdiv__(x,
y) y/x |
|||
|
__rdivmod__(x,
y) ydivmod(y, x)x |
|||
|
__repr__(x) repr(x) |
|||
|
__rfloordiv__(x,
y) y//x |
|||
|
__rlshift__(x,
y) y<<x |
|||
|
__rmod__(x,
y) y%x |
|||
|
__rmul__(x,
y) y*x |
|||
|
__ror__(x,
y) y|x |
|||
|
__rpow__(y,
x,
z=...) pow(x, y[, z]) |
|||
|
__rrshift__(x,
y) y>>x |
|||
|
__rshift__(x,
y) x>>y |
|||
|
__rsub__(x,
y) y-x |
|||
|
__rtruediv__(x,
y) y/x |
|||
|
__rxor__(x,
y) y^x |
|||
|
__str__(x) str(x) |
|||
|
__sub__(x,
y) x-y |
|||
|
__truediv__(x,
y) x/y |
|||
|
__xor__(x,
y) x^y |
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
abs(x) |
x+y |
x&y |
cmp(x,y) |
coerce(x, y) |
x/y |
xdivmod(x, y)y |
float(x) |
x//y |
x.__getattribute__('name') <==> x.name
|
|
hash(x)
|
hex(x) |
int(x) |
~x |
long(x) |
x<<y |
x%y |
x*y |
-x |
|
x != 0 |
oct(x) |
x|y |
+x |
pow(x, y[, z]) |
y+x |
y&x |
y/x |
ydivmod(y, x)x |
repr(x)
|
y//x |
y<<x |
y%x |
y*x |
y|x |
pow(x, y[, z]) |
y>>x |
x>>y |
y-x |
y/x |
y^x |
str(x)
|
x-y |
x/y |
x^y |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Oct 6 14:45:50 2006 | http://epydoc.sourceforge.net |