First page Back Continue Last page Overview Graphics

Built-in Methods of Operators

Unary Operators:

- object.__neg__(self) + object.__pos__(self) abs() object.__abs__(self) ~ object.__invert__(self) complex() object.__complex__(self) int() object.__int__(self) long() object.__long__(self) float() object.__float__(self) oct() object.__oct__(self) hex() object.__hex__(self)

Comparison Operators:

< object.__lt__(self, other) <= object.__le__(self, other) == object.__eq__(self, other) <>, != object.__ne__(self, other) > object.__gt__(self, other) >= object.__ge__(self, other)