Bug report
Bug description:
|
s = "" if number == 1 else "s" |
|
print( |
|
f"{number} loop{s} " |
|
f"{theme.punctuation}-> " |
|
f"{theme.timing}{time_taken:.{precision}g} secs{reset}" |
|
) |
This should instead account for the (unlikely) situation that time_taken == 1 sec, like we do for loops.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
cpython/Lib/timeit.py
Lines 342 to 347 in 8687b9d
This should instead account for the (unlikely) situation that
time_taken == 1 sec, like we do for loops.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs