Creating instance

Salvatore salvatore at wanadoo.fr
Tue Apr 1 16:46:28 EST 2003


Hello,

I would like to create an instance of class
from the string name of the class

class Foo:
	pass

classname = 'Foo'
instance = create_instance('Foo')


Thank you for your help

Regards

Salvatore








More information about the Python-list mailing list