[Python-checkins] r83396 - python/branches/py3k/Lib/timeit.py

georg.brandl python-checkins at python.org
Sun Aug 1 10:52:32 CEST 2010


Author: georg.brandl
Date: Sun Aug  1 10:52:32 2010
New Revision: 83396

Log:
#4810: document "--" option separator in timeit help.

Modified:
   python/branches/py3k/Lib/timeit.py

Modified: python/branches/py3k/Lib/timeit.py
==============================================================================
--- python/branches/py3k/Lib/timeit.py	(original)
+++ python/branches/py3k/Lib/timeit.py	Sun Aug  1 10:52:32 2010
@@ -9,7 +9,7 @@
 Library usage: see the Timer class.
 
 Command line usage:
-    python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement]
+    python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [--] [statement]
 
 Options:
   -n/--number N: how many times to execute 'statement' (default: see below)
@@ -19,6 +19,7 @@
   -c/--clock: use time.clock() (default on Windows)
   -v/--verbose: print raw timing results; repeat for more digits precision
   -h/--help: print this usage message and exit
+  --: separate options from statement, use when statement starts with -
   statement: statement to be timed (default 'pass')
 
 A multi-line statement may be given by specifying each line as a


More information about the Python-checkins mailing list