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 bethard, jnespolo, ned.deily, paul.j3, r.david.murray
Date 2014-10-25.05:21:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This issue has already been raise in
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_negative_number_optionals'.  Testing whether argument strings are numbers or not is better done with 'complex()'.

        if not self._has_negative_number_optionals:
                return None
            except ValueError:

That was my first patch, and I haven't looked at it much since then, other than testing that it is compatible with a number of other proposed patches.
Date User Action Args
2014-10-25 05:21:19paul.j3setrecipients: + paul.j3, bethard, ned.deily, r.david.murray, jnespolo
2014-10-25 05:21:19paul.j3setmessageid: <>
2014-10-25 05:21:19paul.j3linkissue22672 messages
2014-10-25 05:21:19paul.j3create