Skip to content

argparse.BooleanOptionalAction accept and silently discard its the const argument #85039

Closed
@remilapeyre

Description

@remilapeyre
BPO 40862
Nosy @rhettinger, @miss-islington, @remilapeyre
PRs
  • bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction #20623
  • [3.9] bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623) #20664
  • 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 2020-06-06.02:31:45.829>
    created_at = <Date 2020-06-04.11:59:48.464>
    labels = ['library', '3.9', '3.10']
    title = 'argparse.BooleanOptionalAction accept and silently discard its the const argument'
    updated_at = <Date 2020-06-07.16:22:59.941>
    user = 'https://github.com/remilapeyre'

    bugs.python.org fields:

    activity = <Date 2020-06-07.16:22:59.941>
    actor = 'paul.j3'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-06-06.02:31:45.829>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2020-06-04.11:59:48.464>
    creator = 'remi.lapeyre'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40862
    keywords = ['patch']
    message_count = 6.0
    messages = ['370703', '370772', '370776', '370777', '370792', '370811']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'paul.j3', 'miss-islington', 'remi.lapeyre']
    pr_nums = ['20623', '20664']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40862'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.9only security fixesstdlibPython modules in the Lib dir

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions