calling method on dynamically loaded module

Kragen Sitaker kragen at canonical.org
Mon Nov 26 23:20:29 CET 2001


"Eric Cifreo" <ecifreo at austin.rr.com> writes:
>     meth = getattr(mymod, "perform")

I think this line reads meth = getattr(mymod, "perform()") in the code
that gives you the following error, and that's your problem.

> exceptions.AttributeError 'snmp_mod' module has no attribute 'perform()'

HTH.




More information about the Python-list mailing list