creating multiply arguments for a method.

noro amit.man at gmail.com
Sun Aug 27 09:56:04 EDT 2006


Hi all,

I use a method that accept multiply arguments ("plot(*args)").
so plot([1,2,3,4]) is accepted and plot([1,2,3,4],[5,6,7,8]) is also
accepted.

the problem is that i know the number of arguments only at runtime.
Let say that during runtime i need to pass 4 arguments, each is a list,
creating a set of lists and passing it to the method wont word since
the interpartor thinks it is only 1 argument the contain a reference to
a "list of lists", instede of number of arguments, each is a list.

any suggestions?
thanks
amit




More information about the Python-list mailing list