Issue 1685704: Command line interface to timeit.py (original) (raw)
In the documentation for timeit.py
http://docs.python.org/lib/node808.html
it says
25.9.1 Command Line Interface
When called as a program from the command line, the following form is used:
python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement ...]
In fact, for this to work we have to put in the full path to timeit.py. Wouldn't it be better to ask Python to search for it with the -m flag? That is, shouldn't that line be
python -m timeit [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement ...]
instead?