At Thursday 18/1/2007 21:31, Dongsheng Ruan wrote:
Does anybody know how to pass multiple arguments to the function
tested in timeit.timer() in
python?
I googled and found how to pass one argument:
x=1
mytime = timeit.Timer( setup="from Createlst import createlst", stmt=
"createlst(%
Hi
Does anybody know how to pass multiple arguments to the function
tested in timeit.timer() in
python?
I googled and found how to pass one argument:
x=1
mytime = timeit.Timer( setup="from Createlst import createlst", stmt=
"createlst(%s)"%(x) )
But how can I extend it to two or more