calling method on dynamically loaded module

Kragen Sitaker kragen at canonical.org
Mon Nov 26 17:20:29 EST 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