On Jun 7, 8:13 am, Tobiah <[EMAIL PROTECTED]> wrote: > Is there a way to call function in an imported > module having only the name? > > func_name = 'doit' > > real_func = foo.some_magic(func_name)
Presuming 'foo' is the name of the module: real_func = getattr(foo, func_name) > > #Now call it > real_func(args) > -- http://mail.python.org/mailman/listinfo/python-list