expanding a list and dict to a *args and **dict

Oleg Broytmann phd at phd.pp.ru
Fri Feb 2 12:39:33 EST 2001


On Fri, 2 Feb 2001, Dan Parisien wrote:
> Is it possible to 'expand' a list or dictionary into its components to call
> a function expecting many parameters?

   Use builtin function "apply"! Read docs...

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list