I have list of class names and want to create their instances dynamically. for example:
names=[ \'foo.baa.a\', \'foo.daa.c\', \'foo.AA\', .... ] def save(c
Best Answer I found: Better Way is to make a dictionary: objects ={} Names =[object1,object2, object3]
For objname in Names: objects[objname]=classname()
Found in: https://www.thecodingforums.com/threads/create-object-name-from-string-value.712461/