how do I call a function in my class?

Published: Wednesday, Dec 26, 2007 Last modified: Wednesday, Feb 24, 2021

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)()