Message180152
| Author |
Robert |
| Recipients |
Robert, bethard, chris.jerdonek |
| Date |
2013年01月17日.20:41:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1358455275.77.0.668069982501.issue16970@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Attached is a patch which solves these problems and adds test cases of Chris Jerdonek. When nargs is negative the same ValueError is raised as when nargs is zero. Also when nargs is any other invalid value a ValueError("invalid value for nargs") is raised.
I have one question and that is about the value PARSER="A..." for nargs, it's a valid option and there are test cases with nargs="A...", however it is not listed in the documentation: http://docs.python.org/dev/library/argparse.html#nargs |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月17日 20:41:15 | Robert | set | recipients:
+ Robert, bethard, chris.jerdonek |
| 2013年01月17日 20:41:15 | Robert | set | messageid: <1358455275.77.0.668069982501.issue16970@psf.upfronthosting.co.za> |
| 2013年01月17日 20:41:15 | Robert | link | issue16970 messages |
| 2013年01月17日 20:41:15 | Robert | create |
|