mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353)
This commit is contained in:
parent
7accf2033d
commit
c4a786b8ad
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
|
@ -208,7 +208,7 @@ class Timer:
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def autorange(self, callback=None):
|
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 *number* set to successive powers of
|
Calls the timeit method with *number* set to successive powers of
|
||||||
ten (10, 100, 1000, ...) up to a maximum of one billion, until
|
ten (10, 100, 1000, ...) up to a maximum of one billion, until
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue