Let's say I have the python function f(x, y)
and a tuple t = (a, b)
. To apply f
to t
, I can write f(t[0], t[1])
which is not elegant, especially if the size of the tuple is greater than 2.
f
is not my function and I don't want to manage any customisation of the module it comes from. So a solution as f(t)
where f
is modified is not acceptable.
Is there a way to do something like f(t.elements())
?