Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
base:main
Are you sure you want to change the base?
Conversation
picnixz left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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?
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). |
I'll merge this one tomorrow, sorry for forgetting about this one :') |
Uh oh!
There was an error while loading.Please reload this page.
varargs
in_PyArg_CheckPositional
#129594