Variable option count
Simon Brunning
simon.brunning at gmail.com
Wed May 4 10:17:24 EDT 2005
On 5/4/05, Florian Lindner <Florian.Lindner at xgm.de> wrote:
> Hello,
> how can I give an arbitrary number of options in a automated way to a
> function?
>
> Example.
>
> I've the list A =
>
> [1, 2, 3]
>
> Now I want to give this list to a function so that it is the same for
> function like:
>
> f(1, 2, 3)
>
> How can I do that?
f(*A)
--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/
More information about the Python-list
mailing list