Hi,
I just had a question concerning Task B about "%timeit -o f(p_big, q_big)"
What does the "-o" do? Because I tried without it and I don't see the difference ... and I can't find any documentation talking about it.
Thank you,
Loïc Busson
@busson,
The -o option is used to return an object for further analysis. If you try running without -o, the object returned should be None
-o
None
From the timeit documentation:
timeit
-o: return a TimeitResult that can be stored in a variable to inspect the result in more details.
TimeitResult
(tip: by using ` ` you can typeset code inline, and ``` ``` as a block, see here)
@arnout_jan_J, thank you for your help!
Task B : %timeit -o
Hi,
I just had a question concerning Task B about "%timeit -o f(p_big, q_big)"
What does the "-o" do? Because I tried without it and I don't see the difference ... and I can't find any documentation talking about it.
Thank you,
Loïc Busson
@busson,
The
-o
option is used to return an object for further analysis.If you try running without
-o
, the object returned should beNone
From the
timeit
documentation:(tip: by using ` ` you can typeset code inline, and ``` ``` as a block, see here)
1
@arnout_jan_J, thank you for your help!
Add comment