Calling a method using an argument

Diez B. Roggisch deetsNOSPAM at web.de
Thu Feb 3 10:56:05 EST 2005


def test(self,arg):
    return getattr(self, arg)

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list