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 Christophe.Guillon, abacabadabacaba, amcnabb, andersk, bethard, danielsh, davidben, drm, eric.araujo, eric.smith, gdb, gfxmonk, nelhage, paul.j3, r.david.murray, skilletaudio
Date 2013-03-15.04:43:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363322605.32.0.150527309192.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
While

parser._negative_number_matcher

is used during parser.parse_args() to check whether an argument string is a 'negative number' (and hence whether to classify it as A or O).

parser._optionals._negative_number_matcher

is used during parser.add_argument() to determine whether an option_string is a 'negative number', and hence whether to modify the _hasNegativeNumberOptionals flag.  If this matcher is the general r'^-.+$', adding the default '-h' will set this flag.  We don't want that.

Using a different matcher for these two containers might work, but is awfully kludgy.
History
Date User Action Args
2013-03-15 04:43:25paul.j3setrecipients: + paul.j3, amcnabb, bethard, eric.smith, eric.araujo, r.david.murray, gfxmonk, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, skilletaudio, Christophe.Guillon, danielsh
2013-03-15 04:43:25paul.j3setmessageid: <1363322605.32.0.150527309192.issue9334@psf.upfronthosting.co.za>
2013-03-15 04:43:25paul.j3linkissue9334 messages
2013-03-15 04:43:24paul.j3create