Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix contradiction in timeit.Timer.autorange's docstring
  • Loading branch information
zhangyangyu committed Feb 27, 2017
commit 712515e4efcbbd66b1d7cc77496df81e3bef6ef5
2 changes: 1 addition & 1 deletion Lib/timeit.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def repeat(self, repeat=default_repeat, number=default_number):
return r

def autorange(self, callback=None):
"""Return the number of loops so that total time >= 0.2.
"""Calculate the number of loops 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
Expand Down