Tobiah ha scritto:
> 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)
> 
> #Now call it
> real_func(args)
> 
> 
> I'm trying to set up a function dispatcher for a
> SOAP server.
> 
> Thanks,
> 
> Tobiah
> 

What's wrong with real_func = getattr(foo, func_name) ? Maybe I 
misunderstood your question ?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to