Bo Yang: > to get an instance of the class 'classname' from a > string , in python , how do I do that ?
This is a possibile way: class C: pass c = locals()["C"]() print c Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list
Bo Yang: > to get an instance of the class 'classname' from a > string , in python , how do I do that ?
This is a possibile way: class C: pass c = locals()["C"]() print c Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list