Accessing function in a module by name

Tobiah toby at tobiah.org
Thu Jun 7 00:22:43 CEST 2007


> What's wrong with real_func = getattr(foo, func_name) ? Maybe I 
> misunderstood your question ?

Nothing, it just didn't exist in my mind until now.

Thanks


-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list