Skip to content

argparse: assertion failure if optional argument has square/round brackets in metavar #58254

@oxplot

Description

@oxplot
mannequin
BPO 14046
Nosy @ncoghlan, @miss-islington
PRs
  • [3.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7527
  • [3.6] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7528
  • [3.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7530
  • [2.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7553
  • Superseder
  • bpo-11874: argparse assertion failure with brackets in metavars
  • Files
  • argparse_wrap_test.py: Test which causes assertion failure.
  • 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 = None
    closed_at = <Date 2016-01-17.06:20:12.682>
    created_at = <Date 2012-02-18.05:21:48.914>
    labels = ['type-bug', 'library']
    title = 'argparse: assertion failure if optional argument has square/round brackets in metavar'
    updated_at = <Date 2018-06-09.01:28:05.561>
    user = 'https://bugs.python.org/oxplot'

    bugs.python.org fields:

    activity = <Date 2018-06-09.01:28:05.561>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-17.06:20:12.682>
    closer = 'martin.panter'
    components = ['Library (Lib)']
    creation = <Date 2012-02-18.05:21:48.914>
    creator = 'oxplot'
    dependencies = []
    files = ['24554']
    hgrepos = []
    issue_num = 14046
    keywords = []
    message_count = 7.0
    messages = ['153632', '154234', '245970', '319040', '319049', '319053', '319126']
    nosy_count = 6.0
    nosy_names = ['ncoghlan', 'bethard', 'paul.j3', 'oxplot', 'John Jones', 'miss-islington']
    pr_nums = ['7527', '7528', '7530', '7553']
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '11874'
    type = 'behavior'
    url = 'https://bugs.python.org/issue14046'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions