Connect your moderator Slack workspace to receive post notifications:
Sign in with Slack

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

This comment was deleted..

@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

From the timeit documentation:

-o: return a TimeitResult that can be stored in a variable to inspect the result in more details.

(tip: by using ` ` you can typeset code inline, and ``` ``` as a block, see here)

@arnout_jan_J, thank you for your help!

Page 1 of 1

Add comment

Post as Anonymous Dont send out notification