mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
This commit is contained in:
parent
370f7a956c
commit
ecf39bbc97
1 changed files with 1 additions and 1 deletions
2
Lib/timeit.py
Normal file → Executable file
2
Lib/timeit.py
Normal file → Executable file
|
@ -206,7 +206,7 @@ class Timer:
|
|||
return r
|
||||
|
||||
def autorange(self, callback=None):
|
||||
"""Return the number of loops so that total time >= 0.2.
|
||||
"""Return the number of loops and time taken so that total time >= 0.2.
|
||||
|
||||
Calls the timeit method with increasing numbers from the sequence
|
||||
1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue