This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年06月25日 18:01 by tshepang, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| timeit_setup_clarification.diff | groodt, 2012年07月07日 10:51 | review | ||
| Messages (5) | |||
|---|---|---|---|
| msg163999 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012年06月25日 18:01 | |
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 by writing code. |
|||
| msg164000 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012年06月25日 18:02 | |
sorry, I meant 'python -m timeit -h' |
|||
| msg164819 - (view) | Author: Greg Roodt (groodt) * | Date: 2012年07月07日 10:51 | |
Confirmed that the setup statement is correctly excluded from the overall timed run. I've updated the docstring and rst to make this clearer. |
|||
| msg241755 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年04月21日 23:47 | |
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 |
|||
| msg241756 - (view) | Author: A.M. Kuchling (akuchling) * (Python committer) | Date: 2015年04月21日 23:47 | |
Committed to 3.4 and default. Thanks for your patch! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:32 | admin | set | github: 59388 |
| 2015年04月21日 23:47:42 | akuchling | set | status: open -> closed nosy: + akuchling messages: + msg241756 resolution: fixed stage: resolved |
| 2015年04月21日 23:47:02 | python-dev | set | nosy:
+ python-dev messages: + msg241755 |
| 2012年07月07日 10:51:38 | groodt | set | files:
+ timeit_setup_clarification.diff nosy: + groodt messages: + msg164819 keywords: + patch |
| 2012年06月25日 18:02:47 | tshepang | set | messages: + msg164000 |
| 2012年06月25日 18:01:59 | tshepang | create | |