Message184211
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. |
|
Date |
User |
Action |
Args |
2013-03-15 04:43:25 | paul.j3 | set | recipients:
+ 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:25 | paul.j3 | set | messageid: <1363322605.32.0.150527309192.issue9334@psf.upfronthosting.co.za> |
2013-03-15 04:43:25 | paul.j3 | link | issue9334 messages |
2013-03-15 04:43:24 | paul.j3 | create | |
|