[Python-checkins] r73595 - python/trunk/Doc/library/timeit.rst
ezio.melotti
python-checkins at python.org
Sun Jun 28 01:45:39 CEST 2009
Author: ezio.melotti
Date: Sun Jun 28 01:45:39 2009
New Revision: 73595
Log:
stmt and setup can contain multiple statements, see #5896
Modified:
python/trunk/Doc/library/timeit.rst
Modified: python/trunk/Doc/library/timeit.rst
==============================================================================
--- python/trunk/Doc/library/timeit.rst (original)
+++ python/trunk/Doc/library/timeit.rst Sun Jun 28 01:45:39 2009
@@ -26,8 +26,9 @@
The constructor takes a statement to be timed, an additional statement used for
setup, and a timer function. Both statements default to ``'pass'``; the timer
- function is platform-dependent (see the module doc string). The statements may
- contain newlines, as long as they don't contain multi-line string literals.
+ function is platform-dependent (see the module doc string). *stmt* and *setup*
+ may also contain multiple statements separated by ``;`` or newlines, as long as
+ they don’t contain multi-line string literals.
To measure the execution time of the first statement, use the :meth:`timeit`
method. The :meth:`repeat` method is a convenience to call :meth:`timeit`
More information about the Python-checkins
mailing list