Bo Yang wrote: > Hi, > I know in java , we can use > > class.ForName("classname") > > > to get an instance of the class 'classname' from a > string , in python , how do I do that ?
You can use getattr(module, classname)(*arguments) Diez -- http://mail.python.org/mailman/listinfo/python-list