[Python-ideas] Why not f(*my_list, *my_other_list) ?
python at mrabarnett.plus.com
Fri Sep 10 18:54:33 CEST 2010
On 10/09/2010 17:37, cool-RR wrote:
> I noticed that it's impossible to call a Python function with two
> starred argument lists, like this: `f(*my_list, *my_other_list)`. I
> mean, if someone wants to feed two lists of arguments into a function,
> why not?
> I understand why you can't have two stars in a function definition; But
> why can't you have two (or more) stars in a function call?
Would there be any advantage over `f(*(my_list + my_other_list))`?
(Send to wrong list originally :-()
More information about the Python-ideas