[ python-Bugs-1685704 ] Command line interface to timeit.py

SourceForge.net noreply at sourceforge.net
Thu Mar 22 04:06:30 CET 2007


Bugs item #1685704, was opened at 2007-03-21 23:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1685704&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Heaney (theaney)
Assigned to: Nobody/Anonymous (nobody)
Summary: Command line interface to timeit.py

Initial Comment:

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?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1685704&group_id=5470


More information about the Python-bugs-list mailing list