This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients lene, paul.j3
Date 2018-10-24.19:54:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540410842.09.0.788709270274.issue35049@psf.upfronthosting.co.za>
In-reply-to
Content
I think it's the same issue. A dash argument that is not clearly a number is interpreted as an optional's flag.  With few exceptions, the parser does not examine the contents of the string

It tests the initial character, it tests for space, it tests for numbers (I'm not sure scientific notation is accepted).  That's about it.

Argparse has a minimum of constrains on what is a valid flag string.  For example, the following is ok:

parser.add_argument('-1,2')
# appearing the namespace as: Namespace(**{'1,2': None})
History
Date User Action Args
2018-10-24 19:54:02paul.j3setrecipients: + paul.j3, lene
2018-10-24 19:54:02paul.j3setmessageid: <1540410842.09.0.788709270274.issue35049@psf.upfronthosting.co.za>
2018-10-24 19:54:02paul.j3linkissue35049 messages
2018-10-24 19:54:01paul.j3create