From: Xiang Zhang Date: Tue, 28 Feb 2017 03:06:07 +0000 (+0800) Subject: bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) X-Git-Tag: v3.7.0a1~1261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecf39bbc97adc0fb67654602e37d0d8313e9be9d;p=python bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) --- diff --git a/Lib/timeit.py b/Lib/timeit.py old mode 100644 new mode 100755 index 38c2b1f061..418166d791 --- 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