expanding dictionary to function arguments

Noah noah at noah.org
Wed Nov 2 10:11:25 EST 2005


Bruno Desthuilliers a écrit :
> Noah a écrit :
> If you have control over the API functions declarations, makes them so:
> def my_api_func(arg1='', arg2='whatever', **kwargs):
>    code_here

Unfortunately I cannot change the API functions.
I should have mentioned that.

Yours,
Noah




More information about the Python-list mailing list