bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (G… · python/cpython@ecf39bb (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit ecf39bb
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -206,7 +206,7 @@ def repeat(self, repeat=default_repeat, number=default_number): | ||
206 | 206 | return r |
207 | 207 | |
208 | 208 | def autorange(self, callback=None): |
209 | -"""Return the number of loops so that total time >= 0.2. | |
209 | +"""Return the number of loops and time taken so that total time >= 0.2. | |
210 | 210 | |
211 | 211 | Calls the timeit method with increasing numbers from the sequence |
212 | 212 | 1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2 |