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-129594: Remove redundant check on varargs in _PyArg_CheckPositional#129595

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
eendebakpt wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromeendebakpt:_PyArg_CheckPositional

Conversation

eendebakpt
Copy link
Contributor

@eendebakpteendebakpt commentedFeb 2, 2025
edited by bedevere-appbot
Loading

@eendebakpteendebakpt requested a review frompicnixzApril 4, 2025 13:42
Copy link
Member

@picnixzpicnixz left a comment
edited
Loading

Choose a reason for hiding this comment

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

This check is indeed unnecessary but can you transform it into an assertion? just so that we're sure we don't call the function incorrectly or is it impossible to add some assertion inside this?

@eendebakpt
Copy link
ContributorAuthor

I think we could use an assertion within the macro. But if there is no reason to have it, it can only cause confusion.

The code in question was moved around a bit by Victor Stinner (only refactoring, functionality was not touched afaics).
The check was introduced inhttps://github.com/python/cpython/pull/18609/files (under a slightly different nameANY_VARARGS). From that PR it is not clear to me why it was added.@isidentical As PR author do you know why the check was added?

@eendebakpteendebakpt requested a review frompicnixzMay 23, 2025 21:22
@picnixzpicnixz self-assigned thisMay 23, 2025
@picnixz
Copy link
Member

I'll merge this one tomorrow, sorry for forgetting about this one :')

eendebakpt reacted with thumbs up emoji

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

@skirpichevskirpichevskirpichev approved these changes

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@picnixzpicnixzAwaiting requested review from picnixz

Assignees

@picnixzpicnixz

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@eendebakpt@picnixz@skirpichev

[8]ページ先頭

©2009-2025 Movatter.jp