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

2015-03-28 Thread Evgeny Kapun
Changes by Evgeny Kapun : -- nosy: +abacabadabacaba ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

2015-03-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate stage: patch review -> resolved superseder: -> argparse does not accept options taking arguments beginning with dash (regression from optparse) ___ Python tracker

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

2015-03-27 Thread paul j3
paul j3 added the comment: closed with reference to #9334 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

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

2014-12-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this issue is a duplicate of #9334, as it appears to be, this should be closed and a note added to #9334 that there is a patch here also. -- nosy: +terry.reedy ___ Python tracker

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

2014-10-25 Thread paul j3
paul j3 added the comment: Patch tests are added to an existing 'Lib/test/test_argparse.py' file. I use existing test cases as a pattern any new tests. - Your test file runs fine with the patch I proposed for Issue 9334. - The argparse code uses '_neg

[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't know argparse internals but, if I unde

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

2014-10-24 Thread paul j3
paul j3 added the comment: This issue has already been raise in http://bugs.python.org/issue9334 argparse does not accept options taking arguments beginning with dash (regression from optparse) There I proposed leaving '_negative_number_matcher' unchanged, but only use it to set '_has_negativ

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

2014-10-24 Thread Ned Deily
Changes by Ned Deily : -- stage: -> patch review versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2014-10-24 Thread Ned Deily
Ned Deily added the comment: Thanks for the updated patch and test program. Note, to be part of the Python test suite, the test should be in the form of a unittest test and fit into the existing argparse tests here: Lib/test/test_argparse.py. -- nosy: +ned.deily _

[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 ___

[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 ___ ___

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

2014-10-22 Thread Jacopo Nespolo
Changes by Jacopo Nespolo : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[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, -.5E+4 and variations