make a class instance from a string ?

Bo Yang struggleyb at gmail.com
Thu Feb 23 04:43:44 EST 2006


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 ?

Thanks in advance !




More information about the Python-list mailing list