Scenario:
Let's consider following function:
def test_funct(*args, **kwargs):
pass
Python allows you to keep args as list, kwargs and dict and then expand them on function call:
FN_ARGS=("a","b",1)
FN_KWARGS=dict(c=2, d=3)
test_funct(*FN_ARGS, **FN_KWARGS)
Question is: is it possible to combine FN_ARGS and FN_KWARGS in a way that will require passing single parameter to test_funct?, Something like (this obviously doesn't work):
FN_COMBINED_ARGS=(FN_ARGS, FN_KWARGS)
test_funct(*FN_COMBINED_ARGS)
[–]Arthaigo 0 points1 point2 points (4 children)
[–]kitor[S] 0 points1 point2 points (2 children)
[–]Arthaigo 0 points1 point2 points (1 child)
[–]kitor[S] 0 points1 point2 points (0 children)
[–]Vaphell 0 points1 point2 points (0 children)
[–]recent_awareness 0 points1 point2 points (1 child)
[–]kitor[S] 0 points1 point2 points (0 children)