Skip to content

argparse fails with required subparsers, un-named dest, and empty argv #73484

@zpincus

Description

@zpincus
mannequin
BPO 29298
Nosy @merwok, @zpincus, @encukou, @paulie4, @hroncok, @miss-islington, @Lucas-C, @greg-minshall, @iritkatriel
PRs
  • bpo-29298: Fix crash with required subparsers without dest #3680
  • bpo-29298: Fix crash for required subparsers in argparse #18564
  • bpo-29298: Fixing argparse required subparsers error handling #26278
  • [3.10] bpo-29298: Fix crash with required subparsers without dest (GH-3680) #27303
  • [3.9] bpo-29298: Fix crash with required subparsers without dest (GH-3680) #27304
  • 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/merwok'
    closed_at = <Date 2021-07-27.15:42:54.068>
    created_at = <Date 2017-01-17.14:52:49.868>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'argparse fails with required subparsers, un-named dest, and empty argv'
    updated_at = <Date 2021-07-27.15:42:54.067>
    user = 'https://github.com/zpincus'

    bugs.python.org fields:

    activity = <Date 2021-07-27.15:42:54.067>
    actor = 'petr.viktorin'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2021-07-27.15:42:54.068>
    closer = 'petr.viktorin'
    components = ['Library (Lib)']
    creation = <Date 2017-01-17.14:52:49.868>
    creator = 'zachrahan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29298
    keywords = ['patch']
    message_count = 9.0
    messages = ['285646', '285877', '330133', '357839', '393958', '396654', '398049', '398051', '398052']
    nosy_count = 11.0
    nosy_names = ['eric.araujo', 'zachrahan', 'petr.viktorin', 'paul.j3', 'paulie4', 'hroncok', 'miss-islington', 'Mathias Ettinger', 'Lucas Cimon', 'Minshall', 'iritkatriel']
    pr_nums = ['3680', '18564', '26278', '27303', '27304']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29298'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard 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