<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<font size="2"><b>On Tue, 8 May 2007 09:38:48 +0200, Cesar Härdfeldt wrote</b>
<br />> [...]  

<br />> I now have 'module' and 'function' as strings and 
'parms' normally as a list of strings. I can import the module by 
__import__(module) but is there another way to 
call:

<br />> module.function(parms) than using 
eval()?

<br />
<br />function_to_call = getattr(</font><font size="2">__import__(module), function)
<br />function_to_call(parms)
<br />
<br />Hope this helps,
<br />
<br />--
<br />Carsten Haese
<br />http://informixdb.sourceforge.net
<br />
<br /></font>
</BODY>
</HTML>