Skip to content

User input to argparse raises Index_Error: "-a=" on a 'store_true' action #80448

Closed
@paulj3

Description

@paulj3
mannequin
BPO 36267
Nosy @rhettinger, @tirkarthi, @shihai1991
PRs
  • gh-80448: argparse: Fix IndexError on store_true action #15656
  • Files
  • parse_v1.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 = None
    closed_at = None
    created_at = <Date 2019-03-12.01:36:10.610>
    labels = ['type-bug', '3.8', '3.9', '3.10', '3.7', 'library']
    title = 'User input to argparse raises Index_Error:  "-a=" on a \'store_true\' action'
    updated_at = <Date 2020-06-06.22:10:34.797>
    user = 'https://bugs.python.org/paulj3'

    bugs.python.org fields:

    activity = <Date 2020-06-06.22:10:34.797>
    actor = 'remi.lapeyre'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-03-12.01:36:10.610>
    creator = 'paul.j3'
    dependencies = []
    files = ['48582']
    hgrepos = []
    issue_num = 36267
    keywords = ['patch']
    message_count = 7.0
    messages = ['337709', '351031', '351035', '351047', '351048', '351050', '351061']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'paul.j3', 'xtreak', 'shihai1991']
    pr_nums = ['15656']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36267'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.7 (EOL)end of life3.8 (EOL)end of life3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Doc issues

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions