what's the difference between f(a) and f(*a)

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Sep 2 09:49:16 EDT 2008


On Tue, 02 Sep 2008 06:24:21 -0700, qxyuestc wrote:

> showed above: the result from sum1() and sum2() is the same. So, what is
> the difference between f(a) and f(*a)

f(a) -> f([1, 2, 3])
f(*a) -> f(1, 2, 3)

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list