Skip to content

gh-136327: Fix inconsistent TypeError messages regarding invalid values after * and ** #136395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tapeline
Copy link
Contributor

@Tapeline Tapeline commented Jul 7, 2025

Solved removing function name from error message entirely

@python-cla-bot
Copy link

python-cla-bot bot commented Jul 7, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@Tapeline Tapeline changed the title gh-12345: Fix inconsistent TypeError messages regarding invalid values after * and ** gh-136327: Fix inconsistent TypeError messages regarding invalid values after * and ** Jul 7, 2025
funcstr, Py_TYPE(args)->tp_name);
Py_DECREF(funcstr);
}
_PyErr_Format(tstate, PyExc_TypeError,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to use %T formatter here? IIUC it is preferable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants