]> granicus.if.org Git - python/commitdiff
stmt and setup can contain multiple statements, see #5896
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 27 Jun 2009 23:45:39 +0000 (23:45 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 27 Jun 2009 23:45:39 +0000 (23:45 +0000)
Doc/library/timeit.rst

index c545b97148391c41190f9e5036d31aabf97e28ff..fde10781b3106d9d80d82f8f0f55bb29ef5a8900 100644 (file)
@@ -26,8 +26,9 @@ The module defines the following public class:
 
    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`