Some Newbie Questions - Runtime import declarations

Robert Brewer fumanchu at amor.org
Wed May 26 19:35:17 EDT 2004


Leopold Schwinger wrote:
> (2) Is there any way to dynamically import modules, where the name
> of the module is not known during implementation but can be defined
> during scipt execution?

Not just modules, but classes, functions, and module atributes can be
loaded with my xray module:

http://www.aminus.org/rbre/python

Hope that helps,


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list