Kaydet (Commit) ecf39bbc authored tarafından Xiang Zhang's avatar Xiang Zhang Kaydeden (comit) GitHub

bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)

üst 370f7a95
...@@ -206,7 +206,7 @@ class Timer: ...@@ -206,7 +206,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 increasing numbers from the sequence 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 1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment