New submission from Jacopo:
$ python
Python 2.7.3 (default, Jun 21 2016, 18:38:19)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 69.90 + 2.90
72.81
--
components: Inter
Jacopo Tediosi added the comment:
Happening to me on Python3.9 too
Also when calling pool.terminate(), causing my script to hang
--
nosy: +Jacopo Tediosi
versions: +Python 3.9 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue38
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, -
Changes by Jacopo Nespolo :
--
nosy: +bethard
___
Python tracker
<http://bugs.python.org/issue22672>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jacopo Nespolo added the comment:
a better patch
--
Added file: http://bugs.python.org/file37007/argparse.patch
___
Python tracker
<http://bugs.python.org/issue22
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:
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