Yeah. You can use the unpack operator ( '*')
foo(*t)
Note that this works if t is list, tupleor even a generator
There is a similar way to pass arguments to keyword functions using an operator **to match objects (usually dictionaries):
def foo(key=None,foo=None):
pass
foo(**{key:1,foo:2})
source
share