Is it possible to unpack a list or tuple such that the values can be used as function parameters? I.e., how can I make the second line work?
f(1,2,3)
f(???([1,2,3]))
I'm currently doing this by hand, something like:
tmp1, tmp2, tmp3 = [1,2,3]
f(tmp1,tmp2,tmp3)
context: I don't have the ability to modify f(), but this is part of a code generator so funky solutions are not a problem.