I have a dictionary that has function names, i. e.
dict = {
'family1' :
['classA(param1=555','classB(param1=777)'] }
Now I would like to call the methods of the classes like so:
myclass = dict['family1'][0]
myclass.method()
However, I'm getting str object does not have the method() (but it definitely has it, however I seems the myclass is not recognized and stays a string.
BEST ANSWER: Remove '' from ['functioname'] so that the dictionary does not have strings but actual function references in it. Then calls will not reference a string but a function reference.