What's your preferred way of processing configuration parameters?
For example:
test(this=7)
could be processed by:
def test(**kw):
this = kw.pop('this', 1)
that = kw.pop('that', 2)
or
def test(**kw):
if 'this' in kw:
this = kw['this']
else:
this = 1
if 'that' in kw:
that = kw['that']
else:
that = 2
Is there a better (more pythonic) way?
def test(this=1, that=2):?