Bugs item #1685704, was opened at 2007-03-22 03:06 Message generated for change (Comment added) made by gbrandl 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: Closed >Resolution: Fixed 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? ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2007-03-22 08:06 Message: Logged In: YES user_id=849994 Originator: NO Yes, this is indeed the modern and better thing to do. Fixed in rev. 54524, 54525 (2.5). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1685704&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com