Skip to content

Improve error messages for argparse choices using enum#86667

@shangxiao

Description

@shangxiao
mannequin
BPO42501
Nosy@rhettinger, @miss-islington, @tirkarthi, @shangxiao
PRs
  • bpo-42501: Revise the usage note for Enums with the choices #23563
  • [3.9] bpo-42501: Revise the usage note for Enums with the choices (GH-23563) #23573
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee='https://github.com/rhettinger'closed_at=<Date2020-11-30.21:22:19.709>created_at=<Date2020-11-29.10:20:31.016>labels= ['type-bug', '3.10', 'docs'] title='Improve error messages for argparse choices using enum'updated_at=<Date2020-11-30.21:22:19.708>user='https://github.com/shangxiao'

    bugs.python.org fields:

    activity=<Date2020-11-30.21:22:19.708>actor='rhettinger'assignee='rhettinger'closed=Trueclosed_date=<Date2020-11-30.21:22:19.709>closer='rhettinger'components= ['Documentation'] creation=<Date2020-11-29.10:20:31.016>creator='shangxiao'dependencies= [] files= [] hgrepos= [] issue_num=42501keywords= ['patch'] message_count=8.0messages= ['382051', '382054', '382058', '382063', '382094', '382096', '382168', '382193'] nosy_count=5.0nosy_names= ['rhettinger', 'paul.j3', 'miss-islington', 'xtreak', 'shangxiao'] pr_nums= ['23563', '23573'] priority='normal'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype='behavior'url='https://bugs.python.org/issue42501'versions= ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixesdocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions