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
This is often referred to as reflection or sometimes introspection. Check out a similar questions that have an answer for what you are trying to do:
Does Python Have An Equivalent to Java Class forname
Can You Use a String to Instantiate a Class in Python