New submission from Skip Montanaro <s...@pobox.com>:

Consider this timeit run:

    % python -m timeit '-1.0e-3 < -0.0001 < 1.0e-3'
    option -1 not recognized
    use -h/--help for command line help

As it turns out this works:

    % python -m timeit -- '-1.0e-3 < -0.0001 < 1.0e-3'
    10000000 loops, best of 3: 0.192 usec per loop

but the output using the -h flag doesn't report it as a possibility.  It
probably should.

----------
messages: 78838
nosy: skip.montanaro
severity: normal
status: open
title: timeit needs "official" '--' flag

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to