FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-146609: Use argparse for colour help timeit CLI by hugovk · Pull Request #149334 · python/cpython · GitHub

Repository navigation

gh-146609: Use argparse for colour help timeit CLI - #149334

Merged
hugovk merged 2 commits into
python:mainfrom
hugovk:3.15-timeit-argparse
May 4, 2026
Merged

hugovk merged 2 commits into
python:mainfrom
hugovk:3.15-timeit-argparse

Conversation

hugovk commented May 3, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Followup to #146610.

Before After

This not only gives us colour help, which is more readable, it improves validation.

We also don't need to show the class info in CLI help.

hugovk added the stdlib Standard Library Python modules in the Lib/ directory label May 3, 2026

StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

A few little suggestions.

Comment thread Lib/timeit.py Outdated
Comment thread Lib/timeit.py
Comment thread Lib/timeit.py Outdated
Comment thread Lib/timeit.py Outdated
Comment thread Lib/timeit.py
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk enabled auto-merge (squash) May 4, 2026 08:17

hugovk commented May 4, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review!

hugovk merged commit 3506125 into python:main May 4, 2026
50 of 51 checks passed
hugovk deleted the 3.15-timeit-argparse branch May 4, 2026 08:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL