Issue 35138: timeit documentation should have example with function arguments
Created on 2018-11-01 16:45 by davidak, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 9787 | merged | davidak, 2018-11-01 18:42 | |
| PR 13295 | merged | miss-islington, 2019-05-13 19:27 | |
| Messages (5) | |||
|---|---|---|---|
| msg329079 - (view) | Author: (davidak) * | Date: 2018-11-01 16:45 | |
It is described here: https://www.pythoncentral.io/time-a-python-function/ I have just tested it. Works as expected. Best would be if timeit supports this natively. |
|||
| msg329085 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2018-11-01 18:16 | |
There is an open PR that adds a similar example. Is it the same as the one you are proposing and I think you can add a review comment to add it with the same PR if it's different? PR : https://github.com/python/cpython/pull/9787 Thanks |
|||
| msg342376 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2019-05-13 19:27 | |
New changeset 8da5ebe11e0cb6599af682b22f7c2b2b7b9debd8 by Victor Stinner (Anders Hovmöller) in branch 'master': bpo-35138: Added an example for timeit.timeit with callable arguments (GH-9787) https://github.com/python/cpython/commit/8da5ebe11e0cb6599af682b22f7c2b2b7b9debd8 |
|||
| msg342378 - (view) | Author: miss-islington (miss-islington) | Date: 2019-05-13 19:41 | |
New changeset 7f485ea4fc17c5afb38cd0478ff15326fb5a47fc by Miss Islington (bot) in branch '3.7': bpo-35138: Added an example for timeit.timeit with callable arguments (GH-9787) https://github.com/python/cpython/commit/7f485ea4fc17c5afb38cd0478ff15326fb5a47fc |
|||
| msg342391 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2019-05-13 21:53 | |
Thanks Anders Hovmöller! Example added to Python 3.7 and 3.8 documentation :-) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:07 | admin | set | github: 79319 |
| 2019-05-13 21:53:18 | vstinner | set | status: open -> closed resolution: fixed messages: + msg342391 stage: patch review -> resolved |
| 2019-05-13 19:41:35 | miss-islington | set | nosy:
+ miss-islington messages: + msg342378 |
| 2019-05-13 19:27:40 | miss-islington | set | pull_requests: + pull_request13205 |
| 2019-05-13 19:27:23 | vstinner | set | nosy:
+ vstinner messages: + msg342376 |
| 2018-11-01 18:42:49 | davidak | set | keywords:
+ patch stage: needs patch -> patch review pull_requests: + pull_request9598 |
| 2018-11-01 18:16:46 | xtreak | set | nosy:
+ xtreak messages: + msg329085 |
| 2018-11-01 17:12:45 | serhiy.storchaka | set | keywords:
+ easy stage: needs patch type: enhancement versions: + Python 3.8 |
| 2018-11-01 16:45:34 | davidak | create | |
