I use API with long name of argument parameters. Consequently, I create following dictionaries for most common combinations of values which are then unpacked in function calls.
a_T = {'API parameter a': True}
a_F = {'API parameter a': False}
b_100 = {'API parameter b': 100}
b_0 = {'API parameter b': 0}
hello = {'API parameter c': 'hello'}
bye = {'API parameter d': 'goodbye'}
myf(**a_T, **bye)
myf(**b_0)
myf(**a_F, **b_100, **hello, **bye)
Is there any way to avoid repeat double asterisk? The code becomes quite unreadable with many of these strange characters.
Once could then add this unpacking utility to myf:
myf(a_T, bye)
myf(b_0)
myf(a_F, b_100, hello, bye)