jelcOfDice

1

votes
0

answer
10

views

Choosing one of several methods on object instantiation

I have a python class, let's call it MyClass, with several bound methods. I need the behaviour of one of these methods, call it .dynamic_method(), to be drastically different depending on the value of a parameter set during object creation. There will be a handful of variations of dynamic_method whi...
jelcOfDice