def L(*vargs):
return vargs
tada. >>> stuff = ['c','d','e']
>>> L('a','b', *stuff)
('a', 'b', 'c', 'd', 'e')
Just like that. def L(*vargs):
return vargs
tada. >>> stuff = ['c','d','e']
>>> L('a','b', *stuff)
('a', 'b', 'c', 'd', 'e')
Just like that. >>> L(*stuff, 'a', 'b')
SyntaxError: only named arguments may follow *expression
>>> L(*stuff, *stuff)
SyntaxError: invalid syntax