[issue22672] float arguments in scientific notation not supported by argparse

2014-10-25 Thread Jacopo Nespolo
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

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-24 Thread Jacopo Nespolo
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

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-24 Thread Jacopo Nespolo
Jacopo Nespolo added the comment: a better patch -- Added file: http://bugs.python.org/file37007/argparse.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-22 Thread Jacopo Nespolo
Changes by Jacopo Nespolo : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue22672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-19 Thread Jacopo Nespolo
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, -