Message184211
| 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: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 |
|