Diez B. Roggisch wrote: > def test(self,arg): > return getattr(self, arg) >
Oops, missed the calling: def test(self,arg): return getattr(self, arg)() If you have more args, do this: def test(self, *args): return getattr(self, args[0])(*args[1:]) -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list