how do I call a function in my class?

Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Dec 3, 2020

My lazy living is indebted to #python

14:10 < hendry> how do you call a function in my class? like self.%s() % func ??

14:11 < deltab> getattr(self, func)()