Skip to content

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

@remilapeyre

Description

@remilapeyre
BPO40862
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=Noneclosed_at=<Date2020-06-06.02:31:45.829>created_at=<Date2020-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=<Date2020-06-07.16:22:59.941>user='https://github.com/remilapeyre'

    bugs.python.org fields:

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

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions