Accessing function in a module by name

Tobiah toby at
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.


Posted via a free Usenet account from

More information about the Python-list mailing list