call method by name?

Chris Liechti cliechti at gmx.net
Thu Jan 24 18:28:06 EST 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