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 Lucas Cimon
Recipients Anthony Sottile, Lucas Cimon, bethard, bskinn, eric.araujo, gregory.p.smith, memeplex, ned.deily, paul.j3, serhiy.storchaka, wolma
Date 2021-05-21.07:22:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621581738.0.0.497973811293.issue33109@roundup.psfhosted.org>
In-reply-to
Content
Sorry, the fix was by Mathias Ettinger:

    elif isinstance(argument, _SubParsersAction):
        return '{%s}' % ','.join(map(str, argument.choices))

I submitted a PR with this patch and a corresponding unit test:
https://github.com/python/cpython/pull/26278
History
Date User Action Args
2021-05-21 07:22:18Lucas Cimonsetrecipients: + Lucas Cimon, gregory.p.smith, bethard, ned.deily, eric.araujo, memeplex, paul.j3, serhiy.storchaka, wolma, Anthony Sottile, bskinn
2021-05-21 07:22:18Lucas Cimonsetmessageid: <1621581738.0.0.497973811293.issue33109@roundup.psfhosted.org>
2021-05-21 07:22:17Lucas Cimonlinkissue33109 messages
2021-05-21 07:22:17Lucas Cimoncreate