is there an equivalent of javascript's this["myMethod"] for the currently running script?

Leif K-Brooks eurleif at ecritters.biz
Wed Jul 6 00:00:19 EDT 2005


markturansky at gmail.com wrote:
> I'd like to dynamically find and invoke a method in a Python CGI.

getattr(self, methodName)()

But make sure to validate user input first, of course.



More information about the Python-list mailing list