GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Add colour to `timeit` CLI output · Issue #146609 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:Taking inspiration from CLI tools such as hyperfine:
Let's add colour to the CLI output of 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 PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |