This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:23paul.j3setrecipients: + paul.j3, py.user
2015-06-18 01:17:23paul.j3setmessageid: <1434590243.15.0.61939993545.issue24419@psf.upfronthosting.co.za>
2015-06-18 01:17:23paul.j3linkissue24419 messages
2015-06-18 01:17:21paul.j3create