[issue40419] timeit CLI docs still mention old power sequence

New submission from Sander van Rijn <svr003@gmail.com>: 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. ---------- assignee: docs@python components: Documentation messages: 367517 nosy: Sander van Rijn, docs@python priority: normal severity: normal status: open title: timeit CLI docs still mention old power sequence type: enhancement versions: Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Change by Roundup Robot <devnull@psf.upfronthosting.co.za>: ---------- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +19073 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19752 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: Thanks for the report. This was changed as part of issue28469 where autorange docstring was updated. I guess this was missed out. ---------- nosy: +serhiy.storchaka, xtreak _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: 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/766352320fd736e2c8ed545b4cc57563f61... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19177 pull_request: https://github.com/python/cpython/pull/19863 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +19178 pull_request: https://github.com/python/cpython/pull/19864 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: 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/399b9a4a620f544c1afa3b8c7fd82d093b5... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: 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/4eec39a98c57bc374888b54c34ca11fdffc... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________

Change by Serhiy Storchaka <storchaka+cpython@gmail.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40419> _______________________________________
participants (5)
-
Karthikeyan Singaravelan
-
miss-islington
-
Roundup Robot
-
Sander van Rijn
-
Serhiy Storchaka