FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve error message for function calls with bad keyword arguments · Issue #107944 · python/cpython · GitHub

Repository navigation

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

Closed

Description

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

Activity

  1. pablogsal commented on Aug 14, 2023

    Member

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

  2. added 6 commits that reference this issue on Aug 15, 2023
  3. pablogsal commented on Aug 17, 2023

    Member

    Will close after I add a what's new entry

  4. hugovk commented on Nov 9, 2023

    Member

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

  5. pablogsal commented on Nov 10, 2023

    Member

    (@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

  6. added a commit that references this issue on Jan 31, 2024
  7. added a commit that references this issue on Feb 8, 2024
  8. added a commit that references this issue on Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL