Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06f8b57

Browse files
scotchkaserhiy-storchaka
authored andcommitted
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
Show correct number of repeats.
1 parent 32ebd85 commit 06f8b57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/timeit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ The same can be done using the :class:`Timer` class and its methods::
292292
>>> t.timeit()
293293
0.3955516149999312
294294
>>> t.repeat()
295-
[0.40193588800002544, 0.3960157959998014, 0.39594301399984033]
295+
[0.40183617287970225, 0.37027556854118704, 0.38344867356679524, 0.3712595970846668, 0.37866875250654886]
296296

297297

298298
The following examples show how to time expressions that contain multiple lines.

0 commit comments

Comments
 (0)