[Python-ideas] Why not f(*my_list, *my_other_list) ?

Paul Rubin no.email at nospam.invalid
Fri Sep 10 19:28:14 CEST 2010

Ian Kelly <ian.g.kelly at gmail.com> writes:
>> Would there be any advantage over `f(*(my_list + my_other_list))`?
> That fails if my_list and my_other_list are different types, whereas
> the *args syntax happily accepts any iterable object.

f(*itertools.chain(my_list, my_other_list))

More information about the Python-list mailing list