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 BreamoreBoy, Rosuav, bethard, biko, paul.j3, tshepang
Date 2015-10-11.23:52:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444607561.68.0.492454117595.issue18769@psf.upfronthosting.co.za>
In-reply-to
Content
Under what circumstances would this be useful?

http://bugs.python.org/issue19462 asks for a 'remove_argument' method.  That seems to be most useful if the argument is inherited from a parent parser.

A subparsers argument could be inherited from a parent (I think), but the parenting mechanism does not provide a reference to the corresponding  _SubParsersAction object.  We'd have to look it up in the main parser._actions.

Also parenting does not make copies of the Actions.  It just copies references.  That means any change to the main parser  _SubParsersAction object is also a change to the parent's object.

http://bugs.python.org/issue22401 discusses the problems involved changing an inherited argument.

The method seems simple enough, but I'd like to see a better case for its value.
History
Date User Action Args
2015-10-11 23:52:41paul.j3setrecipients: + paul.j3, bethard, BreamoreBoy, tshepang, Rosuav, biko
2015-10-11 23:52:41paul.j3setmessageid: <1444607561.68.0.492454117595.issue18769@psf.upfronthosting.co.za>
2015-10-11 23:52:41paul.j3linkissue18769 messages
2015-10-11 23:52:41paul.j3create