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 bethard, mZarjk, paul.j3
Date 2014-09-09.06:10:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410243056.05.0.854300071538.issue22363@psf.upfronthosting.co.za>
In-reply-to
Content
This assertion has triggered several bug issues, either due to an empty group like this, or certain characters in the metavars.

http://bugs.python.org/issue17890
'argparse: mutually exclusive groups full of suppressed args can cause AssertionErrors'

http://bugs.python.org/issue11874 
'argparse assertion failure with brackets in metavars'

http://bugs.python.org/issue16360 
'argparse: comma in metavar causes assertion failure when formatting long usage message'

I think this is a duplicate of 17890, though I'll have to look more closely at your patch to see what it adds.

For 11874 I proposed a major rewrite of the usage formatting.  There I format each group and/or action separately, and keep the pieces in a list.  That way it's easier to filter out empty pieces, and avoids the complex split that gives headaches when the usage is long enough to wrap.
History
Date User Action Args
2014-09-09 06:10:56paul.j3setrecipients: + paul.j3, bethard, mZarjk
2014-09-09 06:10:56paul.j3setmessageid: <1410243056.05.0.854300071538.issue22363@psf.upfronthosting.co.za>
2014-09-09 06:10:56paul.j3linkissue22363 messages
2014-09-09 06:10:55paul.j3create