Accessing function in a module by name

Tobiah toby at tobiah.org
Wed Jun 6 18:22:43 EDT 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