diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-06 15:55:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 15:55:18 (GMT) |
commit | 3ef769fcd378a7f1cda19c0dfec2e79613d79e48 (patch) | |
tree | 3b17ddf6edf3f37d1b292dd0e150bc9e8c24e8e3 /Lib/timeit.py | |
parent | 492d6424a7ca907c8ec1df21e51062e8f3d88e32 (diff) | |
download | cpython-3ef769fcd378a7f1cda19c0dfec2e79613d79e48.zip cpython-3ef769fcd378a7f1cda19c0dfec2e79613d79e48.tar.gz cpython-3ef769fcd378a7f1cda19c0dfec2e79613d79e48.tar.bz2 |
bpo-28240: timeit: Update repeat() doc (GH-7419)
Document that the default value of repeat changed from 3 to 5 in
Python 3.7.
Diffstat (limited to 'Lib/timeit.py')
-rwxr-xr-x | Lib/timeit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py index 418166d..c0362bc 100755 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -13,7 +13,7 @@ Command line usage: Options: -n/--number N: how many times to execute 'statement' (default: see below) - -r/--repeat N: how many times to repeat the timer (default 3) + -r/--repeat N: how many times to repeat the timer (default 5) -s/--setup S: statement to be executed once initially (default 'pass'). Execution time of this setup statement is NOT timed. -p/--process: use time.process_time() (default is time.perf_counter()) @@ -184,7 +184,7 @@ class Timer: This is a convenience function that calls the timeit() repeatedly, returning a list of results. The first argument - specifies how many times to call timeit(), defaulting to 3; + specifies how many times to call timeit(), defaulting to 5; the second argument specifies the timer argument, defaulting to one million. |