Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Tapeline wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromTapeline:fix-gh-136327

Conversation

Tapeline
Copy link
Contributor

@TapelineTapeline commentedJul 7, 2025
edited by bedevere-appbot
Loading

Solved removing function name from error message entirely

@python-cla-bot
Copy link

python-cla-botbot commentedJul 7, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@TapelineTapeline changed the titlegh-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.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Nikita's suggestions on removing the function name entirely were motivated by the fact that getting this name is not fast and does not add much value (in fact, none at all). I've looked into the %T specification, and it seems to do x2 of work we just got rid of, so I doubt that that would be a positive change. Anyway, we're waiting on Mark's review on that, maybe he has another opinion

sergey-miryanov and efimov-mikhail reacted with thumbs up emoji
Copy link
Contributor

@efimov-mikhailefimov-mikhail left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

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

While we are at it :)

Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

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

Thank you!

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

@sergey-miryanovsergey-miryanovsergey-miryanov left review comments

@sobolevnsobolevnsobolevn approved these changes

@efimov-mikhailefimov-mikhailefimov-mikhail approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@Tapeline@sergey-miryanov@sobolevn@efimov-mikhail

[8]ページ先頭

©2009-2025 Movatter.jp