Message245449
| Author |
paul.j3 |
| Recipients |
paul.j3, py.user |
| Date |
2015年06月18日.01:17:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1434590243.15.0.61939993545.issue24419@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
What are you trying to accomplish in the examples with a 'dest'? For a positional, 'dest' is derived from the 'foo' name. There is no need to supply 'dest', in fact produces the error you get. It has nothing to with this action type (as your last example demonstrates).
Your case with 'foo' and 'bar' shows that 'append_const' works fine.
But be ware that such an action does not make much sense for a positional. Such an action takes no arguments, i.e. 'nargs=0'. So such a positional is always present, since it does not consume any `argv` strings. You might even get an error if you supply a string. (same would be true of 'store_true' and related actions). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年06月18日 01:17:23 | paul.j3 | set | recipients:
+ paul.j3, py.user |
| 2015年06月18日 01:17:23 | paul.j3 | set | messageid: <1434590243.15.0.61939993545.issue24419@psf.upfronthosting.co.za> |
| 2015年06月18日 01:17:23 | paul.j3 | link | issue24419 messages |
| 2015年06月18日 01:17:21 | paul.j3 | create |
|