Can you create a class from a string name

Vivek Sawant vivek-sawant at verizon.net
Sat Mar 1 15:45:31 EST 2003


Hi,

is there a way to create a class object or an instance object for a 
class if you have the name of the class as a string at the runtime.

For example, in Java you can create a 'Class' object as:

Class.forname ('<classname>')

Thanks.

\vivek





More information about the Python-list mailing list