Skip to content

argparse: append action with default list adds to list instead of overriding #60603

@MarkusAmaltheaMagnuson

Description

@MarkusAmaltheaMagnuson
BPO 16399
Nosy @rhettinger, @bitdancer, @SylvainDe, @shihai1991
PRs
  • bpo-16399: update argparse's doc of append action #17793
  • Files
  • argparse_foo_test.py: Test script demonstrating the described behavior.
  • append_to_default.patch: patch documenting behaviour
  • 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 2012-11-04.01:30:23.526>
    labels = ['type-bug', '3.8', '3.9', '3.10', 'library', 'docs']
    title = 'argparse: append action with default list adds to list instead of overriding'
    updated_at = <Date 2020-11-06.20:03:35.710>
    user = 'https://bugs.python.org/MarkusAmaltheaMagnuson'

    bugs.python.org fields:

    activity = <Date 2020-11-06.20:03:35.710>
    actor = 'iritkatriel'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation', 'Library (Lib)']
    creation = <Date 2012-11-04.01:30:23.526>
    creator = 'Markus.Amalthea.Magnuson'
    dependencies = []
    files = ['27874', '44934']
    hgrepos = []
    issue_num = 16399
    keywords = ['patch']
    message_count = 14.0
    messages = ['174735', '174757', '185994', '220969', '221005', '224964', '224969', '263352', '277895', '277915', '277919', '322664', '358871', '359190']
    nosy_count = 13.0
    nosy_names = ['rhettinger', 'roysmith', 'bethard', 'r.david.murray', 'docs@python', 'paul.j3', 'Yclept.Nemo', 'Markus.Amalthea.Magnuson', 'SylvainDe', 'michal.klich', 'Gabriel Devenyi', 'gun146', 'shihai1991']
    pr_nums = ['17793']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16399'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirstdlibStandard 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