I’d like to be able to get a dictionary of all the parameters passed to a function.
def myfunc( param1, param2, param3 ):
print 'Param1=%(param1)s, Param2=%(param2)s Param3=%(param3)' % __method_param_dict__
So my question is does the dictionary method_param_dict exist, and if so what is it called.
Thanks
A solution for your specific example:
But be sure to have a look at this article for a complete explanation of the possiblities (args, kwargs, mixed etc…)