FWIW: [def][decorateMethod1(param)] [def][decorateMethod2(param)] def method(self,param): pass or all in one line [def][decorateFunc1(param)][decorateFunc2(param)] def func(param): pass [class][decorateClass(param)] class toBeDecorated: pass import hooks [import][modify(mod)] import foo Regards Wiktor Sadowski