call method by name?

Chris Liechti cliechti at gmx.net
Fri Jan 25 00:28:06 CET 2002


andreyw at mailandnews.com (andreyw) wrote in 
news:76d5d34e.0201241512.1981f173 at posting.google.com:
> How to say this in Python?
> 
> method_name = 'method1'
> a. at method_name()

apply(a, method_name)


-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list