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 Endre, berker.peksag, bethard, kapsh, paul.j3, xiang.zhang
Date 2019-07-07.17:02:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562518958.61.0.932882963608.issue26952@roundup.psfhosted.org>
In-reply-to
Content
Xiang Zhang pointed out that the immediate error in this case was caused by the empty mutually exclusive group:

https://bugs.python.org/issue26952#msg264835

The nesting fails because adding actions to the argument_group does not enroll them in the mutually exclusive group.  So the group._group_actions list remains empty, just as it is in your case.

As I pointed out earlier, the usage formatter is brittle.  The addition of mutually exclusive group markings is particularly clunky.
History
Date User Action Args
2019-07-07 17:02:38paul.j3setrecipients: + paul.j3, bethard, berker.peksag, xiang.zhang, Endre, kapsh
2019-07-07 17:02:38paul.j3setmessageid: <1562518958.61.0.932882963608.issue26952@roundup.psfhosted.org>
2019-07-07 17:02:38paul.j3linkissue26952 messages
2019-07-07 17:02:38paul.j3create