I am trying to \'destructure\' a dictionary and associate values with variables names after its keys. Something like
params = {\'a\':1,\'b\':2} a,b = params.
I don't know whether it's good style, but
locals().update(params)
will do the trick. You then have a, b and whatever was in your params dict available as corresponding local variables.
a
b
params