Re: how to parse sys.argv as dynamic parameters to another function?

2015-01-30 Thread Ned Batchelder
On 1/30/15 11:28 AM, Ian Kelly wrote: On Fri, Jan 30, 2015 at 9:09 AM, Robert Chen wrote: how to parse sys.argv as dynamic parameters to another function? fun(sys.argv) in perl, this is very easy. please help. Do you mean that you want each item of sys.argv to be passed as a separate

Re: how to parse sys.argv as dynamic parameters to another function?

2015-01-30 Thread Ian Kelly
On Fri, Jan 30, 2015 at 9:09 AM, Robert Chen wrote: > how to parse sys.argv as dynamic parameters to another function? > > > fun(sys.argv) > > in perl, this is very easy. please help. Do you mean that you want each item of sys.argv to be passed as a separate parameter to t

Re: how to parse sys.argv as dynamic parameters to another function?

2015-01-30 Thread Skip Montanaro
On Fri, Jan 30, 2015 at 10:09 AM, Robert Chen wrote: > > how to parse sys.argv as dynamic parameters to another function? > > > fun(sys.argv) Not sure what you mean by "dynamic", but I think you already have it, assuming fun is a function which accepts a single list o

how to parse sys.argv as dynamic parameters to another function?

2015-01-30 Thread Robert Chen
how to parse sys.argv as dynamic parameters to another function? fun(sys.argv) in perl, this is very easy. please help. -- https://mail.python.org/mailman/listinfo/python-list