1

I'm using a package called sk-rf. The class provided has numerous methods. I built a wrapper around that class, and I want to use methods of that class based on string as follows:

my_string = "method1"

object.my_string()

I can do with with exec and eval, but I want something elegant, pro and not hacky.

Alex
  • 599
  • 1
  • 5
  • 14

0 Answers0