Skip to content

gh-148254: Use singular "sec" in timeit verbose output#148290

Merged
hugovk merged 1 commit intopython:mainfrom
gaweng:fix-timeit-secs-plural
Apr 9, 2026
Merged

gh-148254: Use singular "sec" in timeit verbose output#148290
hugovk merged 1 commit intopython:mainfrom
gaweng:fix-timeit-secs-plural

Conversation

@gaweng
Copy link
Copy Markdown
Contributor

@gaweng gaweng commented Apr 9, 2026

Change "secs" to "sec" in the verbose callback of timeit.main() for consistency with other time units (nsec, usec, msec, sec) used elsewhere in the module output.

Change "secs" to "sec" in the verbose callback of timeit.main() for
consistency with other time units (nsec, usec, msec, sec) used elsewhere
in the module output.
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Apr 9, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This is a bugfix, let's backport?

@StanFromIreland StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Apr 9, 2026
@StanFromIreland
Copy link
Copy Markdown
Member

This is a bugfix, let's backport?

+1

@hugovk hugovk merged commit d8c5658 into python:main Apr 9, 2026
61 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @gaweng for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Sorry, @gaweng and @hugovk, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d8c56581560ed139d261dd14acd73597e40cf88b 3.14

@miss-islington-app
Copy link
Copy Markdown

Sorry, @gaweng and @hugovk, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d8c56581560ed139d261dd14acd73597e40cf88b 3.13

hugovk pushed a commit to hugovk/cpython that referenced this pull request Apr 9, 2026
…ythonGH-148290)

(cherry picked from commit d8c5658)

Co-authored-by: gaweng <38250674+gaweng@users.noreply.github.com>
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 9, 2026

GH-148303 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Apr 9, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 9, 2026

GH-148304 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Apr 9, 2026
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 9, 2026

@gaweng Thank you and congratulations on your first contribution!

hugovk pushed a commit to hugovk/cpython that referenced this pull request Apr 9, 2026
…ythonGH-148290)

(cherry picked from commit d8c5658)

Co-authored-by: gaweng <38250674+gaweng@users.noreply.github.com>
hugovk added a commit that referenced this pull request Apr 9, 2026
) (#148304)

Co-authored-by: gaweng <38250674+gaweng@users.noreply.github.com>
hugovk added a commit that referenced this pull request Apr 9, 2026
) (#148303)

Co-authored-by: gaweng <38250674+gaweng@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants