Can you create a class from a string name

Vivek Sawant vivek-sawant at
Sat Mar 1 21:45:31 CET 2003


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>')



More information about the Python-list mailing list