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 iritkatriel
Recipients iritkatriel, paul.j3
Date 2021-12-10.15:48:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639151325.73.0.166144511686.issue18349@roundup.psfhosted.org>
In-reply-to
Content
Reproduced on 3.11:

>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('foo', type=int, choices=range(20), metavar='range(0,20)')
_StoreAction(option_strings=[], dest='foo', nargs=None, const=None, default=None, type=<class 'int'>, choices=range(0, 20), help=None, metavar='range(0,20)')
>>> parser.format_usage()
'usage: [-h] range0,20\n'
History
Date User Action Args
2021-12-10 15:48:45iritkatrielsetrecipients: + iritkatriel, paul.j3
2021-12-10 15:48:45iritkatrielsetmessageid: <1639151325.73.0.166144511686.issue18349@roundup.psfhosted.org>
2021-12-10 15:48:45iritkatriellinkissue18349 messages
2021-12-10 15:48:45iritkatrielcreate