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 Sworddragon, paul.j3, r.david.murray
Date 2016-12-10.21:30:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481405430.32.0.263370362098.issue25035@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the information that `add_argument` returns a Action object is missing from the documentation.  It might be useful addition.

The documentation has many faults.  It isn't basic enough to be a tutorial, but many first time users use it as such, and get confused by its complexity.  But it also is not a formal reference document. And the automatic 'help(argparse)' isn't much better.

A regular user does not need to use the Action object directly.  But as a developer I often test argparse in an interactive shell (IPython), and the 'out' line shows a 'str' of the object (as a summary of its attributes).  So assigning that object to a variable is just as natural to me as saving the parser object returned by argparse.ArgumentParser, or the group object returned by parser.add_argument_group.
History
Date User Action Args
2016-12-10 21:30:30paul.j3setrecipients: + paul.j3, r.david.murray, Sworddragon
2016-12-10 21:30:30paul.j3setmessageid: <1481405430.32.0.263370362098.issue25035@psf.upfronthosting.co.za>
2016-12-10 21:30:30paul.j3linkissue25035 messages
2016-12-10 21:30:29paul.j3create