GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `*` parameter's error messages say `argument` instead of `parameter` · Issue #133436 · python/cpython

* parameter's error messages say argument instead of parameter #133436

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
* parameter's error messages say argument instead of parameter#133436
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@hyperkai
hyperkai
opened on May 5, 2025
Issue body actions

Bug report

Bug description:

Setting two * to a function gets the error message saying * argument as shown below:

def func(*, *, param1, param2):
    pass

SyntaxError: * argument may appear only once

Setting * after all the parameters gets the error message saying named arguments as shown below:

def func(param1, param2, *):
    pass

SyntaxError: named arguments must follow bare *

So, argument should be replaced with parameter as shown below:

SyntaxError: duplicate parameter 'param' in function definition

SyntaxError: named parameters must follow bare *

*You can also see this issue.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

  • gh-133436: Correct error messages that incorrectly use "arguments" #133463

Activity

  1. hyperkai
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 5, 2025
  2. picnixz commented on May 5, 2025

    @picnixz
    picnixz
    on May 5, 2025
    Member
    More actions

    I think it's better to reuse the same issue as before where we could fix usages instead of having multiple issues for the same error.

    For *, we should say "* marker" (or separator, idk) instead (it's not a parameter nor an argument IMO)

  3. picnixz
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on May 5, 2025
  4. StanFromIreland commented on May 5, 2025

    @StanFromIreland
    StanFromIreland
    on May 5, 2025
    Member
    More actions

    I can open a separate pr for this.

  5. picnixz commented on May 5, 2025

    @picnixz
    picnixz
    on May 5, 2025
    Member
    More actions

    Yes, please

    Reacted by Stan Ulbrych
  6. picnixz
    added
    topic-parser
    on May 5, 2025
  7. picnixz commented on May 9, 2025

    @picnixz
    picnixz
    on May 9, 2025
    Member
    More actions

    Let's do everything in the other PR/issue.

  8. picnixz
    closed this as a duplicateof Parameter's error messages say argument instead of parameter #133379 on May 9, 2025
  9. skirpichev
    removed
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.