diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 13:51:09 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 13:51:09 (GMT) |
commit | 55ac8f0f26efdbbcb5cc197f9369d23d50bee908 (patch) | |
tree | a0d5b7128c055d8c767652dc3948c3404be06396 /Doc/library/timeit.rst | |
parent | 1617457cff847fed9fadb01f1acf6ba8bb621726 (diff) | |
download | cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.zip cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.gz cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.bz2 |
Get rid of the remaining versionadded/versionchanged directives.
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r-- | Doc/library/timeit.rst | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index 8c0cda3..bc9615a 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -6,8 +6,6 @@ :synopsis: Measure the execution time of small code snippets. -.. versionadded:: 2.3 - .. index:: single: Benchmarking single: Performance @@ -33,11 +31,10 @@ The module defines the following public class: method. The :meth:`repeat` method is a convenience to call :meth:`timeit` multiple times and return a list of results. - .. versionchanged:: 2.6 - The *stmt* and *setup* parameters can now also take objects that are callable - without arguments. This will embed calls to them in a timer function that will - then be executed by :meth:`timeit`. Note that the timing overhead is a little - larger in this case because of the extra function calls. + The *stmt* and *setup* parameters can also take objects that are callable + without arguments. This will embed calls to them in a timer function that + will then be executed by :meth:`timeit`. Note that the timing overhead is a + little larger in this case because of the extra function calls. .. method:: Timer.print_exc([file=None]) @@ -105,16 +102,12 @@ Starting with version 2.6, the module also defines two convenience functions: function and run its :meth:`repeat` method with the given repeat count and *number* executions. - .. versionadded:: 2.6 - .. function:: timeit(stmt[, setup[, timer[, number=1000000]]]) Create a :class:`Timer` instance with the given statement, setup code and timer function and run its :meth:`timeit` method with *number* executions. - .. versionadded:: 2.6 - Command Line Interface ---------------------- |