Return to Snippet

Revision: 50385
at August 19, 2011 05:47 by eristoddle


Initial Code
import sys
methodToCall = getattr(sys.modules[__name__], "method")
result = methodToCall()

Initial URL

                                

Initial Description

                                

Initial Title
Use __getattr__() From Within Python Module

Initial Tags

                                

Initial Language
Python