Roundup Robot added the comment:
New changeset e0e3d2ec56b6 by Andrew Kuchling in branch '3.4':
#15183: clarify timeit documentation to say that setup statement isn't timed
https://hg.python.org/cpython/rev/e0e3d2ec56b6
--
nosy: +python-dev
___
A.M. Kuchling added the comment:
Committed to 3.4 and default. Thanks for your patch!
--
nosy: +akuchling
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15183
Greg Roodt gro...@gmail.com added the comment:
Confirmed that the setup statement is correctly excluded from the overall timed
run.
I've updated the docstring and rst to make this clearer.
--
keywords: +patch
nosy: +groodt
Added file:
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
I looked at 'python -m time -h' and the timeit doc, and it was not clear to me
(after a quick read) that the statement(s) inside --setup option and setup
keyword argument weren't included in the speed test. I had to check for myself
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
sorry, I meant 'python -m timeit -h'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15183
___