[New-bugs-announce] [issue4810] timeit needs "official" '--' flag
Skip Montanaro
report at bugs.python.org
Fri Jan 2 17:41:28 CET 2009
New submission from Skip Montanaro <skip at 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 <report at bugs.python.org>
<http://bugs.python.org/issue4810>
_______________________________________
More information about the New-bugs-announce
mailing list