Skip to content

argparse only supports iterable choices #60672

Closed
@cjerdonek

Description

@cjerdonek
BPO 16468
Nosy @rhettinger, @terryjreedy, @bitdancer, @cjerdonek, @berkerpeksag, @nanjekyejoannah
PRs
  • bpo-16468: Clarify which objects can be passed to "choices" in argparse #15566
  • [3.8] bpo-16468: Clarify which objects can be passed to "choices" in argparse (GH-15566) #15587
  • Files
  • issue-16468-1.patch
  • issue-16468-2.patch
  • issue-16468-3.patch
  • issue-16468-4.patch
  • choice2.patch
  • 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 = <Date 2019-08-29.07:59:11.924>
    created_at = <Date 2012-11-14.04:32:19.512>
    labels = ['easy', '3.8', 'type-bug', 'library', '3.9']
    title = 'argparse only supports iterable choices'
    updated_at = <Date 2019-08-29.08:15:24.135>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2019-08-29.08:15:24.135>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2019-08-29.07:59:11.924>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2012-11-14.04:32:19.512>
    creator = 'chris.jerdonek'
    dependencies = []
    files = ['28731', '28734', '28735', '28765', '30872']
    hgrepos = []
    issue_num = 16468
    keywords = ['patch', 'newcomer friendly']
    message_count = 34.0
    messages = ['175534', '175574', '175584', '180007', '180009', '180010', '180021', '180023', '180024', '180032', '180049', '180052', '180053', '180067', '180071', '180075', '180168', '180169', '180186', '180191', '180710', '180720', '192110', '192273', '192714', '193190', '349914', '349915', '349924', '349928', '349930', '349934', '350748', '350753']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'terry.reedy', 'bethard', 'r.david.murray', 'chris.jerdonek', 'BrenBarn', 'berker.peksag', 'paul.j3', 'hashimo', 'Radu.Ciorba', 'sebix', 'nanjekyejoannah']
    pr_nums = ['15566', '15587']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16468'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of life3.9only security fixeseasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions