I can get a list of a function's arguments.
.... return a+b
....
('a', 'b')
Let's say that I also have a dictionary of possible arguments for this
function.
How do I proceed to call bob(a=10, b=5) with this information?
Thanks!
>>def bob(a, b):
....
>>bob.func_code .co_varnames
Let's say that I also have a dictionary of possible arguments for this
function.
>>possible = {'a':10, 'b':5, 'c':-3}
Thanks!
Comment