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

Add colour to `timeit` CLI output · Issue #146609 · python/cpython · GitHub

Repository navigation

Add colour to timeit CLI output #146609

Closed
Closed

Description

Feature or enhancement

Proposal:

Taking inspiration from CLI tools such as hyperfine:

Let's add colour to the CLI output of python -m timeit.

Standard and verbose:

./python.exe -m timeit "'-'.join(str(n) for n in range(100))"
./python.exe -m timeit --verbose "'-'.join(str(n) for n in range(100))"

With a warning:

./python.exe -m timeit --verbose "import time, random; time.sleep(random.random() * 0.5)"

As usual, environment variables can control colour output.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    on Mar 29, 2026
  2. added a commit that references this issue on Apr 8, 2026
  3. added a commit that references this issue on Apr 25, 2026
  4. added a commit that references this issue on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL