Author paul.j3
Recipients Sam.Kerr, paul.j3
Date 2014-07-25.21:37:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406324242.32.0.461743579813.issue22047@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a preliminary patch that raises an error if there's an attempt to nest a mutually exclusive group in another, or there's an attempt to add an argument group to either kind of group.

It still needs test_argparse.py and argparse.rst changes

I'm raising a ValueError, since that is what most of the other add_argument errors do.  An alternative is a NotImplementedError, since that is, in effect, what I am doing, blocking the implementation of particular 'add' methods.

An alternative to adding this patch as high priority bug issue, is to include it in the UsageGroup patch (11588) which will implement nestable groups.
History
Date User Action Args
2014-07-25 21:37:22paul.j3setrecipients: + paul.j3, Sam.Kerr
2014-07-25 21:37:22paul.j3setmessageid: <1406324242.32.0.461743579813.issue22047@psf.upfronthosting.co.za>
2014-07-25 21:37:22paul.j3linkissue22047 messages
2014-07-25 21:37:22paul.j3create