differentially loading a class at runtime

Robert Brewer fumanchu at amor.org
Wed Oct 13 23:56:21 CEST 2004

Maurice LING wrote:
> In normal circumstances, we know exactly which class to load and use 
> using compile time. But I am now faced with a situation 
> whereby I need 
> to load a class differentially at runtime (the user can define which 
> class to load).
> ...
> How can I differentially use the classes at runtime?

The way I do it:

Search for "dynamically import" and you'll find lots of other ways.

Robert Brewer
Amor Ministries
fumanchu at amor.org

More information about the Python-list mailing list