Перегрузка операций


class Overload
    def __init__(self): pass        # constructor
    def __del__(self): pass         # destructor
    def __add__(self,other): pass   # +
    def __mul__(self,other): pass   # *
    def __len__(self): pass         # len()
    def __call__(self): pass        # len()
    def __getitem__(self,name): pass        #
    def __setitem__(self,name,value): pass  #
    def __getattr__(self,name): pass        #
    def __setattr__(self,name,value): pass  #