You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the code in Let's make a giant string! is incorrect; that's not how you use the timeit module. (I would normally use IPython's %%timeit magic). You have to give the function to timeit in some way where it does not evaluate the function before it gets to the timeit call!
Ah, never thought of that. Thanks for pointing it out @henryiii, will fix it 👍
And it'd be nice to see the deltas b/w the previous timeit use, and the newer approach. If the different is significant enough, we can make another wtf out of it!
I believe the code in
Let's make a giant string!
is incorrect; that's not how you use the timeit module. (I would normally use IPython's%%timeit
magic). You have to give the function to timeit in some way where it does not evaluate the function before it gets to the timeit call!Something like this would work:
The text was updated successfully, but these errors were encountered: