Re: creating multiply arguments for a method.

2006-08-28 Thread noro
John Roth wrote: > noro wrote: > > 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 duri

Re: creating multiply arguments for a method.

2006-08-27 Thread John Roth
noro wrote: > 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 argumen

Re: creating multiply arguments for a method.

2006-08-27 Thread Fredrik Lundh
noro wrote: > 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

creating multiply arguments for a method.

2006-08-27 Thread noro
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, creatin