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 — Improve error message for function calls with bad keyword arguments · Issue #107944 · python/cpython

Improve error message for function calls with bad keyword arguments #107944

New issue
Copy link
New issue
Copy link
Closed
Closed
Improve error message for function calls with bad keyword arguments#107944
Copy link
Assignees
pablogsal
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

@rhettinger
rhettinger
opened on Aug 14, 2023
Issue body actions

Current traceback message:

>>> pow(bass=5, exp=2)
Traceback (most recent call last):
  ...
TypeError: pow() missing required argument 'base' (pos 1)

Proposed:

>>> pow(bass=5, exp=2)
Traceback (most recent call last):
  ...
TypeError: pow() Keyword argument 'bass' not defined. Did you mean "base"?

Linked PRs

  • gh-107944: Improve error message for function calls with bad keyword arguments #107969
  • gh-107944: Improve error message for getargs with bad keyword arguments #114792
Reacted by Kirill Podoprigora, Andrew Woodward and Lukier1316

Activity

  1. rhettinger
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Aug 14, 2023
  2. rhettinger
    assigned
    pablogsal
    on Aug 14, 2023
  3. pablogsal commented on Aug 14, 2023

    @pablogsal
    pablogsal
    on Aug 14, 2023
    Member
    More actions

    Ah, fantastic proposal! I will work on this this week

    Reacted by Ken Jin, Erlend E. Aasland, MelonCholi and Youssef Ali
    Reacted by Kirill Podoprigora, Erlend E. Aasland, Charlie Zhao and Hamstek
  4. pablogsal
    added 6 commits that reference this issue on Aug 15, 2023

    pythongh-107944: Improve error message for function calls with bad ke…

    34e4362

    pythongh-107944: Improve error message for function calls with bad ke…

    586f233

    pythongh-107944: Improve error message for function calls with bad ke…

    0c61952

    pythongh-107944: Improve error message for function calls with bad ke…

    a1e2c35

    pythongh-107944: Improve error message for function calls with bad ke…

    efcd204

    gh-107944: Improve error message for function calls with bad keyword …

    75b3db8
  5. pablogsal commented on Aug 17, 2023

    @pablogsal
    pablogsal
    on Aug 17, 2023
    Member
    More actions

    Will close after I add a what's new entry

    Reacted by Erlend E. Aasland and Hugo van Kemenade
  6. hugovk commented on Nov 9, 2023

    @hugovk
    hugovk
    on Nov 9, 2023
    Member
    More actions

    (@pablogsal Reminder for the what's new entry)

    Reacted by Pablo Galindo Salgado
  7. pablogsal commented on Nov 10, 2023

    @pablogsal
    pablogsal
    on Nov 10, 2023
    Member
    More actions

    (@pablogsal Reminder for the what's new entry)

    Thanks for the ping. In general I collect all of this in one PR but I will do this separately so I don't forget

    Reacted by Hugo van Kemenade
  8. iritkatriel
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Nov 27, 2023
  9. hauntsaninja
    added a commit that references this issue on Jan 31, 2024

    pythongh-107944: Improve error message for getargs with bad keyword a…

    f78eaeb
  10. hauntsaninja
    added a commit that references this issue on Feb 8, 2024

    gh-107944: Improve error message for getargs with bad keyword argumen…

    17689e3
  11. hauntsaninja
    closed this as completedon Feb 8, 2024
  12. fsc-eriker
    added a commit that references this issue on Feb 14, 2024

    pythongh-107944: Improve error message for getargs with bad keyword a…

    005c3f6
  13. daidahao
    added a commit that references this issue on Aug 27, 2025

    Fix test fails due to Python 3.13 error hint

    36cbc80
  14. dennisbader
    added a commit that references this issue on Sep 17, 2025

    Add mixed precision and 16-bit support to `TorchForecastingModel` (#2883

    b870cb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pablogsal
    pablogsal

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

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.