From: Xiang Zhang Date: Tue, 28 Feb 2017 03:28:44 +0000 (+0800) Subject: bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353) X-Git-Tag: v3.6.1rc1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F354%2Fhead;p=thirdparty%2FPython%2Fcpython.git bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353) --- diff --git a/Lib/timeit.py b/Lib/timeit.py old mode 100644 new mode 100755 index 2770efa35a01..8eea766b4c34 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -208,7 +208,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 *number* set to successive powers of ten (10, 100, 1000, ...) up to a maximum of one billion, until