Hey everybody...
Does sombody knows how can i use the getattr function in order to call to a sub function defined inside another one?
somthing like this code:
# ----------------------------
def func1 (self, func_name) :
def func2 () :
print "Blaaaa"
def func3 () :
print "Yaaaaa"
getattr(?, func_name)()
self.func1("func3")
# ----------------------------
what should i put instead of the question mark (?) ?
i tried to write self.func1, but i doesn't work, because it looks
for a function attribute...
maybe there's another solution to this problem?
please help...