how do I call a function in my class?
Published: Wednesday, Dec 26, 2007 Last modified: Monday, Dec 9, 2024
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)()