Getting a class from its name
jim.vickroy at noaa.gov
Tue Aug 20 23:42:01 CEST 2002
How about the eval() function? For example,
>>> a = str('hi')
>>> b = eval("str('hi')")
"Henrik Motakef" <henrik.motakef at web.de> wrote in message
news:8765y51azj.fsf at pokey.henrik-motakef.de...
> I guess thats an easy one, but somehow I'm blocked.
> How do I get a class given its name (or an object of this class
> Say I have the string "xml.dom.Node", how do I use it to make a Node
More information about the Python-list