Message179679
| Author |
guettli |
| Recipients |
guettli |
| Date |
2013年01月11日.13:44:18 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1357911858.69.0.0703193383433.issue16933@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The current argparse documentation is not easy to read people new to python.
http://docs.python.org/dev/library/argparse.html#choices
{{{
current: parser.add_argument('foo', choices='abc')
}}}
Please make this more explicit:
{{{
better: parser.add_argument('foo', choices=['one', 'two', 'three'])
}}}
{{{
current: parser.parse_args('c'.split()) # looks like perl to me
}}}
{{{
better: parser.parse_args(['c'])
}}}
Next: Please use a more common type, not "complex" in the choices example. It confuses a lot of people. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月11日 13:44:18 | guettli | set | recipients:
+ guettli |
| 2013年01月11日 13:44:18 | guettli | set | messageid: <1357911858.69.0.0703193383433.issue16933@psf.upfronthosting.co.za> |
| 2013年01月11日 13:44:18 | guettli | link | issue16933 messages |
| 2013年01月11日 13:44:18 | guettli | create |
|