Jacopo Nespolo added the comment:
Ned Deily: I don't quite know how to use unittest, but I'll try to look into it.
paul j3:
> There I proposed leaving '_negative_number_matcher' unchanged,
> but only use it to set '_has_negative_number_optionals'.
I don
Jacopo Nespolo added the comment:
test program that checks handling of a bunch of numbers.
--
Added file: http://bugs.python.org/file37008/test_argparse.py
___
Python tracker
<http://bugs.python.org/issue22
Jacopo Nespolo added the comment:
a better patch
--
Added file: http://bugs.python.org/file37007/argparse.patch
___
Python tracker
<http://bugs.python.org/issue22
Changes by Jacopo Nespolo :
--
nosy: +bethard
___
Python tracker
<http://bugs.python.org/issue22672>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jacopo Nespolo:
Argparse fails to recognise negative numbers in scientific notation as valid
numbers.
Example:
Suppose the program test.py has this option.
par.add_argument('-a', type=float)
then './test.py -a -1e5' will fail, as well as -1.0e-4, -