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.

classification
Title: timeit CLI docs still mention old power sequence
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Energya, docs@python, miss-islington, python-dev, serhiy.storchaka, xtreak
Priority: normal Keywords: patch

Created on 2020-04-28 10:52 by Energya, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 19752 merged python-dev, 2020-04-28 10:54
PR 19863 merged miss-islington, 2020-05-02 16:12
PR 19864 merged miss-islington, 2020-05-02 16:12
Messages (4)
msg367517 - (view) Author: Sander van Rijn (Energya) * Date: 2020-04-28 10:52
The docs for the `timeit` CLI (https://docs.python.org/3/library/timeit.html#cmdoption-timeit-h) still mention that successive powers of 10 are tried. However, as this also uses the `timeit.Timer.autorange()` function, it uses the new sequence 1, 2, 5, 10, 20, 50, ... instead.
msg367529 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-04-28 13:33
Thanks for the report. This was changed as part of issue28469 where autorange docstring was updated. I guess this was missed out.
msg367936 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-05-02 16:12
New changeset 766352320fd736e2c8ed545b4cc57563f61a0b9d by Sander in branch 'master':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
https://github.com/python/cpython/commit/766352320fd736e2c8ed545b4cc57563f61a0b9d
msg367937 - (view) Author: miss-islington (miss-islington) Date: 2020-05-02 16:29
New changeset 399b9a4a620f544c1afa3b8c7fd82d093b5cc76d by Miss Islington (bot) in branch '3.8':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
https://github.com/python/cpython/commit/399b9a4a620f544c1afa3b8c7fd82d093b5cc76d
msg367938 - (view) Author: miss-islington (miss-islington) Date: 2020-05-02 16:29
New changeset 4eec39a98c57bc374888b54c34ca11fdffcffc07 by Miss Islington (bot) in branch '3.7':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
https://github.com/python/cpython/commit/4eec39a98c57bc374888b54c34ca11fdffcffc07
History
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84599
2020-05-02 20:27:11serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-05-02 16:29:56miss-islingtonsetmessages: + msg367938
2020-05-02 16:29:56miss-islingtonsetmessages: + msg367937
2020-05-02 16:12:46miss-islingtonsetpull_requests: + pull_request19178
2020-05-02 16:12:36miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request19177
2020-05-02 16:12:10serhiy.storchakasetmessages: + msg367936
2020-04-28 13:33:25xtreaksetnosy: + serhiy.storchaka, xtreak
messages: + msg367529
2020-04-28 10:54:30python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request19073
stage: patch review
2020-04-28 10:52:30Energyacreate