Skip to content

unexpected behavior for booleans in argparse #71181

@NathanNaze

Description

@NathanNaze
BPO 26994
Nosy @bitdancer
Superseder
  • bpo-21208: Change default behavior of arguments with type bool when options are specified
  • 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-05-10.18:37:48.266>
    created_at = <Date 2016-05-10.18:30:29.946>
    labels = ['type-bug', 'library']
    title = 'unexpected behavior for booleans in argparse'
    updated_at = <Date 2016-05-14.17:00:50.659>
    user = 'https://bugs.python.org/NathanNaze'

    bugs.python.org fields:

    activity = <Date 2016-05-14.17:00:50.659>
    actor = 'paul.j3'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-05-10.18:37:48.266>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2016-05-10.18:30:29.946>
    creator = 'Nathan Naze'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26994
    keywords = []
    message_count = 6.0
    messages = ['265256', '265257', '265259', '265260', '265284', '265535']
    nosy_count = 3.0
    nosy_names = ['r.david.murray', 'paul.j3', 'Nathan Naze']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '21208'
    type = 'behavior'
    url = 'https://bugs.python.org/issue26994'
    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