Edwin.Madari@Ve rizonWireless.c om wrote:
why?
</F>
1. return string names of required methods in getAllMethod
return ['method1', 'method2', 'method3']
2. use gettattr on self and then exetute methods in applyAll
def applyAll(self):
for method_name in self.getAllMeth od():
method = gettattr(self,m ethod_name)
method() #execute method now
return ['method1', 'method2', 'method3']
2. use gettattr on self and then exetute methods in applyAll
def applyAll(self):
for method_name in self.getAllMeth od():
method = gettattr(self,m ethod_name)
method() #execute method now
</F>