how do I call a function in my class?

Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Nov 14, 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)()