How do I call anonymous classes from imported modules?
joesox at gmail.com
Mon Aug 20 05:00:07 CEST 2007
I am importing 3rd party modules via a plugin script. I wish to
iterate thru the modules and call a common method like .do_foobar() or
something with all the imports.
But I can't figure out how to do something like below without knowing
the class name before hand. Is there a builtin that helps call
(Calling example.do_foobar() works because I manually enter the classes' name)
>>> sensorsList = 
>>> for snames in a.pluginsDict["sensorsplugins"]:
but I need something like
because I will not know the plugin class names.
More information about the Python-list