diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-02-28 03:06:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 03:06:07 (GMT) |
commit | ecf39bbc97adc0fb67654602e37d0d8313e9be9d (patch) | |
tree | 549a1bd8624b7c61fda1e97d9e928aae5bdf109c /Lib/timeit.py | |
parent | 370f7a956cef5895c93ca5a53fc26b04df973aaf (diff) | |
download | cpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.zip cpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.tar.gz cpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.tar.bz2 |
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
Diffstat (limited to 'Lib/timeit.py')
-rwxr-xr-x[-rw-r--r--] | Lib/timeit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py index 38c2b1f..418166d 100644..100755 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -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 |