dictionary that have functions with arguments

s99999999s2003 at yahoo.com s99999999s2003 at yahoo.com
Wed Nov 2 05:02:41 CET 2005

i have a dictionary defined as

execfunc = { 'key1' : func1 }

to call func1, i simply have to write execfunc[key1] .
but if  i have several arguments to func1 , like

execfunc = { 'key1' : func1(**args) }

how can i execute func1 with variable args?
using eval or exec?


More information about the Python-list mailing list